• sandandseahomes.com

    I want to move BEACHFRONT to the top of the list, right now I think it’s determined alphabetically.

    How do I move it up?

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter revnice

    (@revnice)

    Curtiss:

    This should do it.
    https://pastebin.com/jaGKdU3D

    Do we have two threads going on here?

    @revnice – a) yes, there are two threads going on here. Hopefully a moderator will pop in and get things straightened out.
    b) It looks like there is a custom function (display_listings()) in your theme’s functions.php file that is building the left menu; so in order to figure things out, I’ll need to see the code from that file. If you can follow the same instructions I gave you for posting your index.php file, but use the functions.php file instead, that would be great.

    Thread Starter revnice

    (@revnice)

    https://pastebin.com/un4YpKke

    Far out – thanks!

    It looks like that function is retrieving the categories by using the get_categories() function, and ordering them according to category ID.

    It won’t be extremely easy just to move the Beachfront category; but there are a few options you have.

    1. You can organize the types of properties (categories) alphabetically by changing:
      $categories = get_categories('hide_empty=0&child_of='.$parent_cat_id.'&orderby=id'); //exclude news category (ID 1)
      to
      $categories = get_categories('hide_empty=0&child_of='.$parent_cat_id); //exclude news category (ID 1)
    2. You can reverse the order of the categories by changing:
      $categories = get_categories('hide_empty=0&child_of='.$parent_cat_id.'&orderby=id'); //exclude news category (ID 1)
      to
      $categories = get_categories('hide_empty=0&child_of='.$parent_cat_id.'&orderby=id&order=DESC'); //exclude news category (ID 1)

    Unfortunately, without completely rewriting the way the theme displays that information, I can’t really think of another way to move “Beachfront” to the top of the list.

    Thread Starter revnice

    (@revnice)

    Wow. Thanks.

    It might be a little ambitious for me at this stage. The site is up and running, people are browsing and I’d hate to screw something up.

    * Could I bring Beachfront up the list by creating new categories?

    * What about deleting existing categories, recreating them such that they appear below Beachfront, then restoring the posts?

    Is there anyway I can tinker with a copy of the site first?

    Thread Starter revnice

    (@revnice)

    Hey – what about simply renumbering the category ID?

    If that’s how the order is decided, I could play with that anytime I wanted! Is is hidden, legible, accessible – is it a human number ??

    If you were to create new categories, Beachfront would stay in the same place, but more categories would be added below it.

    If you were to delete the old categories and create new ones, that would have the desired effect, but any posts that were associated with the old categories would end up having to be re-assigned to the appropriate categories (I think the posts automatically get re-assigned to the default category; which, in most cases, is “Uncategorized”).

    You could conceivably change the category IDs, but a) the IDs are only changeable by manually changing items in the database and b) you run the potential risk of using an ID that’s already in use somewhere else. Therefore, I would definitely recommend against that.

    Unfortunately, there is no way to tinker with a copy of the site (short of installing another WordPress and importing all of your settings, posts and files). However, you could use a plugin to backup your entire installation (find one that backs up your files and your database information) and then restore from that backup if something goes wrong.

    Thread Starter revnice

    (@revnice)

    Thanks for all your help.

    I’m used to the old world of html in Frontpage or Deamweaver – you could rename files and reorder menus more easily.

    I would pursue it if it was easy but it’s looking a little too involved so I’ll live with it, customers can scroll down.

    Thanks again.

    Well, in WordPress it can be extremely simple to reorganize menus. Unfortunately, not all themes utilize methods that make it easy to do so. ??

    Sorry we couldn’t get it solved for you; but if you ever decide to move to a new WordPress theme, keep this issue in mind so you know to ask for this kind of functionality. Good luck.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘How do I resequence my menu items?’ is closed to new replies.