15 big-time tools for freelancers

1. Blur Group There’s no such thing as too many prospective clients: even if you have a job and many projects to work on, you never know when the door will close. That’s why it’s a good practice to be open for new clients and prospects. Blur Group is one of the best job boards […]

Read More

WordPress Loop With Style

Using built-in WordPress functionality, you can display any information you want, wherever you want. WordPress makes it easy to display vital post data, navigational tools, and many other versatile features 3. To see an example of this in action, replace the previous loop example with the following, fully-pimped version of WordPress looping bliss. This is like […]

Read More

Alternative Basic WordPress Loop

The next example is a carbon copy of the previous loop example, only with several key (X)HTML elements added for clarity. Copy & paste this code into the index.php 1 of your WordPress theme and examine the results in a browser. Hopefully, combining the code comments with the browser output 2 will give you a crystal clear […]

Read More

Basic WordPress Loop

// any code included here occurs before the wordpress loop and is always displayed <?php if (have_posts()) : ?> // if there are posts to display, process any code included here only once // display any code output from this region above the entire set of posts <?php while (have_posts()) : the_post(); ?> // loop […]

Read More

Run Loop on Posts of Specific Category

Run Loop on Posts of Specific Category <?php query_posts(‘cat=5’); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> If you were to use this, for example, in a left sidebar which ran before the main loop on your page, remember to reset the […]

Read More

Run a Loop Outside of WordPress

Include Basic WordPress Functions <?php // Include WordPress define(‘WP_USE_THEMES’, false); require(‘/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php’); query_posts(‘showposts=1’); ?> Run Loop <?php while (have_posts()): the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> <p><a href=”<?php the_permalink(); ?>” class=”red”>Read more…</a></p> <?php endwhile; ?> This can be used on any PHP file even OUTSIDE your WordPress installation.

Read More