Forums

[resolved] Having trouble with a piece of code after 3.2.1 update... (1 post)

  1. kentopolis
    Member
    Posted 10 months ago #

    So, since I upgraded to 3.2.1 I have been having trouble with a particular piece of code

    } elseif ( $page_type == 'blogpage' ) {
    					$loop = new WP_Query( array( 'post_type' => 'post', 'paged' => $paged, 'cat' => get_post_meta( $pag->ID, 'blog_category', true ) ) );
    					echo '<div id="blog-page"><div id="ajax-container"><div id="ajax-inner">';
    					while ( $loop->have_posts() ) : $loop->the_post(); ?>

    It is supposed to pull a specifically identified category and list it as a Navigation item on a single page theme. It worked fine until the update. Any ideas?

    On a side note - any way to have it pull the category straight from the cat. that is checked on the post rather than having to put the ID in a custom field?

Reply

You must log in to post.

About this Topic