Exclude posts shown in slideshow from latest entries broken (WPShower Sight) (5 posts)

  1. josiahemsley
    Posted 4 years ago #



    I use a theme from WPshower called Sight; they have a small forum, but for some reason would not let me post.

    A default setting was that any post that was shown in the slideshow, would be excluded from the 'latest entries' list of posts on the front page.

    I changed this so that they would be shown in both, by removing this from lines 15-16 in the slidehsow.php file:

    global $exl_posts;
    $exl_posts[] = $post->ID;

    - I now realise it is annoying to have the posts doubled on the page and would like to revert back to the default of excluding the slideshow posts. I thought this would be as simple as adding the 2 lines of code, but now for some reason that does not work anymore. I even replaced the slideshow.php with an old, un-altered copy, which also did not work.

    Can anyone please suggest any reason why this may not work anymore, or something i can do to fix the problem...?

    thanks for the help.


  2. josiahemsley
    Posted 4 years ago #

    slideshow.php at the moment:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  3. josiahemsley
    Posted 4 years ago #

    Does no-one have any ideas?

  4. josiahemsley
    Posted 4 years ago #

    i still have not managed to fix this. would love some help please...

  5. sojweb
    Posted 4 years ago #

    Did you try this before the loop?

    <?php query_posts(array(
            'post__not_in' => $exl_posts,
    ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic