Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #957538

    Hey,

    The sticky post functionality does not work…

    I have tried with the custom code from another post:
    // Make “sticky posts” sticky in the blog element
    add_filter(‘the_posts’, ‘bump_sticky_posts_to_top’);
    function bump_sticky_posts_to_top($posts) {
    foreach($posts as $i => $post) {
    if(is_sticky($post->ID))
    {
    $stickies[] = $post;
    unset($posts[$i]);
    }
    }

    if(!empty($stickies))
    return array_merge($stickies, $posts);

    return $posts;
    }

    But, if you have a paging on the blog element, it sticks to the top of the page it’s on and not on the first page.
    It would be nice, if its not only on the blog element but also on other elements that uses the posts.

    Can you please fix this in the theme and not as a custom change, it should be a think that works out of the box…

    Best regards,
    Kristoffer

    • This topic was modified 6 years, 7 months ago by kristofferm. Reason: i forgot a thing about not only solve this for blog elements
    #959007

    Hey kristofferm,

    You can request this feature here.

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.