WordPress.org

Forums

Display random 12 post in squaregrid (10 posts)

  1. sailen82
    Member
    Posted 2 years ago #

    How can I display random 12 post in my word press website.I want to modify the main word press fetch query.where I am getting that?Can any one help me.

    Thanks

    Sailen

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. sailen82
    Member
    Posted 2 years ago #

    hi esmi i want to setup main query.http://www.gamepay.tv

    This is my website how can i manage to fetch 12 post with randamly.I want to setup in core wp-query wher i am getting it?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Use query_posts(). You can use all of the parameters described for WP_Query() in that function.

  5. sailen82
    Member
    Posted 2 years ago #

    In which page i will get the WP_Query function?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    That depends on where you want these posts displayed.

  7. sailen82
    Member
    Posted 2 years ago #

    I know that I can change in the page but i want the core wordpress file where i can change that(the post select query)

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    No! Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.

  9. sailen82
    Member
    Posted 2 years ago #

    then where i am changing this.I am using a squaregrid them I need to show 12 image randomly.

  10. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic