• Hey,
    when you take a look at the link I provided, I have a page with more than 100 links to sub pages and I want to divide them into sections. I want a menu in the right sidebar where the user can click a link and jump/scroll to a particular section.
    I am not sure how to do this. Should I add a plugin that adds categories (like for posts) to my pages, or is that not necessary?
    Also a problem is, that this bar should be persistent and not move out of the screen, while my normal side bar does move out of the screen. There seem to be quite a few plugins that can add these anchors, but I also need this persitent side-menu.
    Any ideas?

    • This topic was modified 6 years, 11 months ago by flizzywp.
    • This topic was modified 6 years, 11 months ago by flizzywp.
    • This topic was modified 6 years, 11 months ago by flizzywp.
    • This topic was modified 6 years, 11 months ago by flizzywp.
    • This topic was modified 6 years, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s not clear how these links are output. If they all link to WP pages on your site, you can make a post/page query and output the results in a loop. The best way to break into sections depends on how the pages are organized. You could associate categories to pages and use categories. The same can be done for any taxonomy if tags or a custom taxonomy would work better.

    You could use a plugin to associate categories to pages, but honestly, the required code is potentially a one liner, 4 if you want to appear organized.

    One way to do sections is to have an array list of section categories. Step through the array, making a query of pages having that category. Loop through the results after outputting the section header. Continue for each category in the array. This of course is going to be more than a one liner. This coding may be best done as a custom page template which contains all the necessary code. Requesting that one page causes all the code to execute.

    If you are not adept at coding, it may be easier to have a page output the categories, each of which links to that category’s archive page which lists links to the actual destination pages.

    To have the menu bar stay fixed instead of scrolling, you need to change that element’s “position” CSS property to “fixed”.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin to divide a big page into sections’ is closed to new replies.