WP Query Post with Multiple Meta Values
Querying posts where meta_key is ‘my-custom-key’ and meta_value is ‘x’ is simple enough, but what if you need to query by multiple pairs of meta data? Read on to find out how.
Read More
<?php /* take away the Sticky Ability of the Post */ query_posts( 'caller_get_posts=1' ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ... /*Completely exclude Sticky posts from the Loop*/ query_posts( array( "post__not_in" => get_option( "sticky_posts" ) ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ... ?>
Querying posts where meta_key is ‘my-custom-key’ and meta_value is ‘x’ is simple enough, but what if you need to query by multiple pairs of meta data? Read on to find out how.
Read More
add_filter( 'wp_nav_menu_items', 'add_search_box', 10, 2 );
function add_search_box( $items, $args ) {
ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();
$items .= '<li>' . $searchform . '</li>';
return $items;
}
We’ve been inundated with increasingly complex requests for help with WP-e-Commerce importing, so here is a plugin to help with Category importing
Read More
We built a custom search page by writing our own post query, but we needed to apply pagination. Here’s how we did it…
Read More
There are plenty of functions floating about for limiting the length of a WordPress post title, but what if your title contains single quotes?
Read More
We’ve covered bulk uploading in WP eCommerce previously, but what if you want to bulk update?
Read More
The latest version of wpec handles csv uploads differently – time for an update!
Read More
We’ve covered uploading multiple categories in wp-e-commerce, but what about images?
Read More
The Elite Oman website required French and German translations. Here’s how we did it!
Read More