jeffrhi
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: Sticky posts showing in main feed as well as featured post sliderWait, should this be used on the “query.php” sheet or the “index.php”?
It looks like it should be in the “wp-includes/query.php.” but, again, not sure where to input it.Forum: Fixing WordPress
In reply to: Sticky posts showing in main feed as well as featured post sliderI see the code that your talking about in the WP-Query codex…
“Don’t Show Sticky Posts – Exclude all sticky posts from the query”
$query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );…but I guess I’m not exactly sure where to put it. Here is the “index.php” code I have. Can you tell from this if this is where it would be implemented and if so, how? (sorry for my noobness!)
<?php get_header(); ?> <?php if (function_exists('dynamic_sidebar')) : dynamic_sidebar(2); endif; ?> <div id="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); setup_postdata($post); get_template_part("/functions/fetch-list"); endwhile; else : ocmx_no_posts(); endif; ?> <div class="pagination-container"> <?php ocmx_pagination("pagination clearfix"); ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>Thanks for the reply! I really appreciate it!
Viewing 2 replies - 1 through 2 (of 2 total)