Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter diagrammar

    (@diagrammar)

    Thanks done…

    Used Chip’s second suggestion and simply tested for sidebar.php rather than showcase.php

    Thread Starter diagrammar

    (@diagrammar)

    Thanks Chip,

    tried that. it’s much simpler. but still no dice.

    The page I call “Ticker” is chosen as the “posts page” in the Reading Settings of WordPress. When I edit the “Ticker” page, it lists the Template as “Sidebar template”

    How would I alter the code you provided to specify the ignore-sticky-posts command for a single page? I want featured (sticky) posts ignored only on the page called “Ticker.” They can work normally on all other pages.

    Thread Starter diagrammar

    (@diagrammar)

    Thanks, copied sidebar-page.php and added code but no change to the “Ticker” page.

    Do i need to put something into the Child Theme stylesheet that tells it to use sidebar-page.php from the child theme folder?

    The sidebar-page.php in my child theme folder now begins like this:

    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    <?php
    $stickies = get_option('sticky_posts');
    if( $stickies ) {
       $args = array( 'ignore_sticky_posts' => 1, 'post__not_in' => $stickies );
       global $wp_query;
       query_posts( array_merge($wp_query->query, $args) );
    }
    ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)