• Resolved gemedj89

    (@gemedj89)


    Hy, I have a problem with featured posts. The general order of the shortcode is by date but featured posts are displayed in alphabetical order. This is a bug ?

    [ajax_load_more id="6996425430" container_type="div" cache="true" cache_id="7127866807" preloaded="true" preloaded_amount="6" seo="true" theme_repeater="single-post.php" post_type="post" post__not_in="'. $current_sticky_id .'" sticky_posts="true" posts_per_page="6" pause="true" scroll="false" progress_bar="true" progress_bar_color="ed7070" button_label="Load more" button_loading_label="Loading..."]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    @gemedj89 Not a bug 🙂
    You can change using the order parameters of the shortcode.

    [ajax_load_more order="ASC" orderby="title"]

    Hope that helps.

    Thread Starter gemedj89

    (@gemedj89)

    Hy dcooney, thanks for support.
    I need to order by date all posts included the featured posts.
    If I use [ajax_load_more order=”ASC” orderby=”date”] the featured posts not show in first position.
    If I don’t use the parameter order the the featured posts show in first position BUT not in date order but in alphabetical order and the remaining posts are sorted correctly.

    Plugin Author Darren Cooney

    (@dcooney)

    I don’t understand what you’re asking sorry.

    What is a Featured Post??

    Thread Starter gemedj89

    (@gemedj89)

    Plugin Author Darren Cooney

    (@dcooney)

    Hi @gemedj89
    The only support the plugin provides for Sticky is found here.
    https://connekthq.com/plugins/ajax-load-more/docs/code-samples/sticky-posts/

    Other than that, I’m not sure how else to help.

    Plugin Author Darren Cooney

    (@dcooney)

    One other thing you could do, if you can’t seem to get the correct order is run you’re own query before Ajax Load More and pass the Post ID’s to the post__in shortcode parameter.

    This will give you full control of the included posts.

    Thread Starter gemedj89

    (@gemedj89)

    Thanks dcooney, i have already read and try with this documentation.
    I try to explain:

    POSTS:
    NAME  DATE      IS STICKY
    A  (10 december)
    C  (9 december)  STICKY
    B  (8 december)
    G  (7 december)  STICKY
    E  (6 december)  STICKY
    F  (5 december)
    D  (4 december)
    
    CORRECT ORDER: (I need this)
    C G E A B F D
    
    PLUGIN ORDER:
    C E G A B F D
    
    The order of sticky posts is ALWAYS alphabetical. Using pre_get_post or parameter "orderby" date the result will be:
    A C B G E F D

    I want to know how to use this plugin and where to use it becouse I can’t find it anywhere Prince Kumar

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Order of featured posts’ is closed to new replies.