Tag Archives: WordPress

WordPres

SEO Learning

Testing Keywords with Google AdWords Test Before You Build Here’s a simple tip that could easily save you 12 months of work: Setting up an effective SEO campaign in a competitive market can be a long drawn out and expensive process. Worse yet, if you are focused on the wrong keywords, you might need to […]

Installing Magento on Localhost

This is tested on both XAMPP (http://www.apachefriends.org) and WAMP (http://www.wampserver.com): Note: on XAMPP the apache directory is just apache while on WAMP the directory is apache2 (please change the instructions below accordingly) Note: check version of PHP, which you will use. Magento not work with PHP 5.3 (for XAMPP, use XAMPP for Windows Version 1.7.1 […]

Get Category or Page Depth or level

get_depth() As far as I know there is no function in WordPress that return the page or category depth. I created a function that returns the depth of a page or category. The depth is how many levels from the root the page or category in its hierarchy. The root level number is 0. <? […]

Code for custom field Image in recent post List

<h3>Recent Post</h3> <div> <!– use a custom field for image , Here the custom field name is = “newReleaseThumb” –> <?php $myposts = get_posts(‘numberposts=5&offset=1′);foreach($myposts as $post) > <div style=” width:100%; float:left; border:#FF0000 0px solid; padding: 5px; margin-bottom:2px; background:#0000FF;”> <div style=”width:95px; float:left;”> <?php $thumbnail = get_post_meta($post->ID, ‘newReleaseThumb’, true); ?> <a href=”<?php the_permalink() ?>” title=”<?php the_title_attribute(); ?>”> […]