• Resolved nootkan

    (@nootkan)


    I am a little confused as to how to configure this plugin. I have my primary menu with four main menus and each has sub menus with sub menus. I want to show the list of sub menus for each page I place the shortcode on. I edited the products page which I want to show the links for all the individual product pages. I used this shortcode: [child_pages list=”true” depth=”2″] as their are 10 individual products each with one more sub menu level. For example:

    Products>>Product Line 1>>Product 2
    >>Product Line 2>>Product 2
    >>Product Line 3>>Product 2
    >>Product Line 4>>Product 2

    And so on…

    Here is what I see when viewing the source code:

    <div class="entry-content">
    		<p>Below are links to all of our product pages.</p>
    <pre><code></code></pre>
    <pre><code> </code></pre>
    			</div><!-- .entry-content -->

    And what I see on the page (without the html of course):

    <div class=”entry-content”>
    <p>Below are links to all of our product pages.</p>

    </div><!– .entry-content –>

    How would I do this? I know I could write the html for each page but there is a lot of pages. I was hoping to just place a shortcode to do the job for me.

    https://wordpress.org/plugins/cc-child-pages/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    The plugin does not show sub-menus, but sub-pages … and hierarchical post types.

    If you have a page called Test, and add the shortcode [child_pages list="true" depth="2"] into the content of that page – it will list al of the pages that are children of Test, and if any of them have child pages they will also be listed.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    If you post a link to the page you have used the shortcode on, I’ll see if I can work out if the plugin will be of use to you.

    [ Signature moderated ]

    Thread Starter nootkan

    (@nootkan)

    http://www.vanislebc.com/webdev/

    So the pages and child pages aren’t related to the primary nav menu?
    I’ve created all the pages and when they are clicked on using the primary menu in the nav bar you navigate to each page. I was hoping this plugin would make my life a little easier by allowing some customization of the first level page to allow navigation to the child pages of it. Maybe I am misunderstanding how it actually works.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    OK.

    I have had a look, and can see that http://www.vanislebc.com/webdev/products/ is a page … but it looks as if what should be the child pages are also at the top level (e.g. http://www.vanislebc.com/webdev/body-and-foot-care/ … not http://www.vanislebc.com/webdev/products/body-and-foot-care/).

    As all the pages are at the top-level, there are no child pages for the plugin to display.

    If you edit the body-and-foot-care page, for example, and set the Parent to be the products page (from the Page Attributes meta-box in the right-hand column when you are editing the page) … and do this for each of the pages that should be sub-pages of products … and so on down the hierarchy of the pages … you will get the results you were expecting.

    You will then probably want to add the shortcode to each of the “sub-sections” under products so that they show the product pages that belong to them.

    I hope that this helps.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Oh, and you seem to have

    HTML tags wrapped around where the shortcode would be … probably from copying and pasting from a web site … if you edit the page in Text mode, you can remove this unwanted HTML which will cause problems with the how the child pages are displayed.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    If you are confused about working with Pages, there are tutorials on my site at https://caterhamcomputing.net/support/wordpress-video-tutorials/pages/ … I would suggest checking out the “Pages vs. Posts” video.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Just saw your response … looks like I was posting at the same time.

    No, the Pages, Posts and other types of content aren’t organised by the menus … menus are arbitrary groups of items that cam be defined to have their own structure. This structure does not have to follow the organisation of the items contained in the menu.

    Thread Starter nootkan

    (@nootkan)

    Ah okay I see. I thought the menu section of wordpress handled that but I see where I can change the parent in the page edit. Hopefully I will be able to use the columns and feature images also to make it look better. Thanks for the help. Could I ask you to remove the url from my previous post as it is a development folder and I don’t really want anyone else going there. Thanks.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Sorry, I am unable to delete your posts from this forum … it is run by WordPress, and the only real control they give is being able to edit a post within 35 minutes of posting it.

    See http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts for more information.

    Thread Starter nootkan

    (@nootkan)

    Well that sucks. Guess I’ll have to password protect the directory and refrain from giving urls in the future. Thanks for you help.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Sorry about that … not my system, I’m afraid.

    Thread Starter nootkan

    (@nootkan)

    Yeah I get that, didn’t mean to imply otherwise. Thanks again.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to configure this plugin’ is closed to new replies.