WordPress.org

Ready to get started?Download WordPress

Forums

Display categories ordered by array position (2 posts)

  1. ellp
    Member
    Posted 1 year ago #

    Hello,

    I'm working on this website kraseybeauty.com. I need to configure the LATEST NEWS block to display the categories in a especific position.

    Here is the home page code:

    http://pastebin.com/fz2QvK7D

    I set the id on line 16:

    $front_cat_list = "10,458,12,460,55,18,102,43";

    There is a way to display those categories in the SAME position placed on the list above?

    Thanks!

  2. vtxyzzy
    Member
    Posted 1 year ago #

    This pastebin code shows how to sort Posts in order of an array of IDs.

    The same technique should work for you.

Topic Closed

This topic has been closed to new replies.

About this Topic