• Hello, I have my sticky posts appearing twice on my homepage : once on top of other posts, second time in the stream. Is this a bug ?
    Moreover I cannot modify it in the latest wordpress version through settings.
    Thanks for helping

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter desirelabs

    (@desirelabs)

    Hi,
    Am I really the only one having this issue ?

    Thread Starter desirelabs

    (@desirelabs)

    As I cannot figure this out in clean way, here I share the dirty one for those like me using infinite scroll :

    var loaded = [];
    function getLoaded() {
        $('#main article').each(function(){
            var id = $(this).attr('id');
            if ( loaded.indexOf( id )) {
                loaded.push( id );
            }
            else {
                $('#main #'+id).eq(1).remove();
            }
        });
    }

    This jQuery function can be called on document ready, and on ajaxSuccess.

    I’m still looking for the clean one by the way ??

    Moderator Kathryn Presner

    (@zoonini)

    Could you please provide me with a link to your site running Pictorico so I can take a look directly?

    Am I really the only one having this issue ?

    I’ve never seen a report of this issue in Pictorico.

    Moreover I cannot modify it in the latest wordpress version through settings.

    Which specific settings are you referring to?

    Thread Starter desirelabs

    (@desirelabs)

    Hi,
    I cannot add the link here as this is a pre-production environement. May I send it to you privately ?

    Moderator Kathryn Presner

    (@zoonini)

    I think we can probably continue for now without me needing to see the site.

    Could you answer this question:

    Which specific settings are you referring to? (When you said: “Moreover I cannot modify it in the latest wordpress version through settings.”

    Have you edited the theme files at all? (Apart from your tweak above.)

    Are you using a child theme?

    If you deactivate Infinite Scroll, does the issue go away?

    I just tested this on a site with Jetpack’s Infinite Scroll active and my one sticky post was never repeated in the main blog stream.

    Thread Starter desirelabs

    (@desirelabs)

    Sorry for answering so lately.
    The specific setting is “featured”. But this is a misunderstanding from my side. This is actually not meant to handle sticky posts.

    I created a child theme to make my custom changes. Concerning the infinite scroll, I’m not using jetpack because of a weird bug with this theme which cause the bottom bumping back, hidding last elements after few pages. This is a related bug in this forum. Instead, I’m using Infinite Ajax Scroll library.

    If I deactivate the infinite scroll, a post which is sticky, but not on the first page, remains on its page. For example, I have 2 posts :
    post A and post B. Post A is on the first page, post B is on the 2nd one.
    Post A only shows up as a sticky post, post B shows up as sticky post and also on the 2nd page.

    Moderator Kathryn Presner

    (@zoonini)

    The specific setting is “featured”. But this is a misunderstanding from my side. This is actually not meant to handle sticky posts.

    Thanks for clarifying.

    I still have not been able to replicate the issue with repeating posts when there is a sticky post and no IS active.

    Have you tried turning off all plugins temporarily to see if one of them may be conflicting?

    Could you also answer these earlier questions:

    Have you edited the theme files at all?

    Are you using a child theme?

    If you either edited theme files (not recommended, as you’ll lose all changes next time there’s a theme update) or are using a child theme, you could try activating a fresh, untouched copy of Pictorico and see if the issue is still present.

    Moderator Kathryn Presner

    (@zoonini)

    Oh sorry, I see that you did mention using a child theme. If you temporarily activate the parent theme, do you still see the issue?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sticky posts appear twice on the homepage’ is closed to new replies.