Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1812209
Penci Related Posts not randomizing
Closed

Comments

  •  1
    Hazardluxian started the conversation

    I'm using "penci related post" shortcode inside posts to bring some "related posts" but the "random" order is not working:

    [penci_related_posts dis_pview="no" dis_pdate="no" title="Artigos relacionados" background="" border="" thumbright="no" number="4" style="grid" align="none" withids="" displayby="cat" orderby="random"]

    What i want is to show other posts from the same category of the post being read but in random order so the articles are not always listed the same.

    I put this code multiple times and the order is always the same.

    I already checked that i have lots of posts in that same category so it should show more combinations than the only one being showed.


  •  1
    Hazardluxian replied

    Forgot to mention that i'm using localhost so i cannot give you access to admin or give you site's address

  •  501
    Penci replied

    Hi,

    Thank you for your all feedback.

    It is small issue our code. I will fix it and add  fix to next update version of PenNews.

    Please replace "orderby="random"" to "orderby="rand""

    Add try shortcode :

    [penci_related_posts dis_pview="no" dis_pdate="no" title="Artigos relacionados" background="" border="" thumbright="no" number="4" style="grid" align="none" withids="" displayby="cat" orderby="rand"]


    Best Regards,

    PenciDesign

  •  1
    Hazardluxian replied

    Thanks for the reply, it worked, but not as intended.

    I have the code inserted a few times in one post. I thought that each time i put the shortcode in the post it would get different posts and randomize them, but instead all the shortcodes comes back with the same articles and in the same order.

    Is there a way to make each shortcode show a different set of posts in random order?

  •  501
    Penci replied

    Hi,

    You can try display post with recent posts ( displayby="recent_posts"   )


    Best Regards, 

    PenciDesign

  •  1
    Hazardluxian replied

    Ok but the problem still stands. If i put more than one shortcode all of them brings the same posts with the same order. I want to put more than one shortcode in the same post, different places, that brings me different posts in different orders.

  •  501
    Penci replied

    Hi,

    If you want put more then one related posts shortcode .

    With each shortcode  you choose defferent display by cat, tag or recent posts as screenshot http://prntscr.com/lsldts

    Best Regards, 

    PenciDesign