Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Exclude/include posts in page breaks 'sticky' behaviour « ThemeShaper Forums

ThemeShaper Forums » Power Blog

[closed]

Exclude/include posts in page breaks 'sticky' behaviour

(1 post)
  • Started 4 years ago by horsellian
  1. horsellian
    Member

    I'm trying to exclude particular posts from pages of posts.

    I found the following code in the forum:

    function childtheme_above_indexloop() {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-3&paged=$paged");
    }
    add_action('thematic_above_indexloop', 'childtheme_above_indexloop');

    This half works, except sticky posts from the excluded category still appear as stickies on the page.

    Since I'm actually trying to separate a category that is written by a single author, I thought I'd try that, so I changed the code to:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("author=-2&paged=$paged");

    However, this also only half works, as now NONE of the sticky posts are sticky anymore.

    I don't really know how to go about fixing this - does anyone have any ideas? I'm guessing this is just peculiar wordpress behaviour rather than anything to do with thematic?

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183