• [Please do not post in uppercase & shout at us. Post title de-capped.]

    Hi I need to reorder the posts in my wordpress blog and I have installed several plugins which do that but they dont work. I found that I need to place ‘hierarchical’ => ‘true’ in my functions.php file on this link:

    https://buckleupstudios.com/blog/custom-post-type-ordering-issue/

    I have found this file opened it up but I don’t know where exactly to place the code? Can you please help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    'hierarchical' => 'true' is used when defining a custom post type. If your theme uses a custom post type, you need to find where it is registered and modify the definition array. The function register_post_type() is used.

    If your posts are regular posts, you cannot change the definition of regular posts. Even if you could, doing so would not change how your existing posts are ordered.

    Thread Starter crisbd1

    (@crisbd1)

    thanks but i need to know where exactly to place the code so I can make the plugin work…

    Moderator bcworkz

    (@bcworkz)

    What is the theme or plugin that is adding the custom post type? I couldn’t tell you without looking at the source code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to reorder posts in wordpress’ is closed to new replies.