Passing multiple variables through url (php)

I’m assuming these are the post details the you’re trying to pass through the URL. Not sure if that is the most effective way to go about doing this. I do the same type of thing, but pass the postID through the URL and when I get to the destination page, use the postID to … Read more

How we filter the search base on post-meta tags

Thats because you got the meta_query wrong. Check documentation in Codex Your query should be: $args = array( ‘posts_per_page’ => 30, ‘paged’ => $paged, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘post_state’, ‘value’ => $stateName, ‘compare’ => ‘=’ // not necesary by default is “=” ) ) ); Basically you … Read more

Changing the loop w/o killing category links

Okay, assuming you only want to restrict the categories for the front page, but still list all categories everywhere else, just add the according template file to your theme: front-page.php <?php get_header(); ?> <?php $my_query = new WP_Query(‘cat=79,120’); ?> <?php if ($my_query->have_posts()) : ?> <div id=”post-area”> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div id=”post-<?php the_ID(); … Read more