Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1354

    Juan Z
    Participant

    I would find it extremely useful if there were video guides as how to use the shortcodes. anyways, I havent been able to figure out how to link my table of content to a certain page. I want http://tuuniversidadvirtual.com/clases/medicina/semiologia/tabla-de-contenidos/anamnesis/ to be the first page the shortcode links to.

    my code looks like: [toc type=”left, right, block”] [toc_item title=”1. Anamnesis” page=”1″] [toc_item title=”2. Second Page” page=”anamnesis”] [/toc]

    the parent page of anamnesis is table of content and its order is set to 1. but when I click toc title 1.Anamnesis it links to the table of contents page again…

    ty for your advice.

    #1357

    Kory
    Keymaster

    Juan,

    We are working on video guides on how to use the shortcodes. It is part of our development timeline along with updates to the theme, new premium items, content releases, et cetera.

    There are helpful references you can take a look at for the time being such as the shortcode demonstrations on the demo installations and the shortcodes documentation. Make sure to read through those as they will help walk you through various features of the shortcodes.

    Regarding the table of contents shortcode, this only works with paginating pages and posts using the ‹!–nextpage–› tag. What happens when you use this tag on your pages or posts in WordPress is that WordPress will break your post out into multiple pages, and for each successive page, it will append a higher number to the page or post URL. For example, a our table of contents example post is broken down into three pages using the tag twice, resulting in an output like this:

    Each [toc_item] item you add will take the number you input from the page attribute and append it to your posts URL. So, if your post URL is http://theme.co/x/demo/integrity/1/shortcodes/table-of-contents/ and you enter in a table of contents item like so, [toc_item title=”Page Two” page=”2″], it will link out to http://theme.co/x/demo/integrity/1/shortcodes/table-of-contents/2/.

    Additionally, You will need to display your whole [toc] block on each page of your post after each ‹!–nextpage–› tag. So, it should look something like this:

    [toc type="left"]
    [toc_item title="1. Introduction" page="1"]
    [toc_item title="2. More Information" page="2"]
    [toc_item title="3. Even More Information" page="3"]
    [/toc]
    
    ...Content for the first page here...
    
    ‹!--nextpage--›
    
    [toc type="left"]
    [toc_item title="1. Introduction" page="1"]
    [toc_item title="2. More Information" page="2"]
    [toc_item title="3. Even More Information" page="3"]
    [/toc]
    
    ...Content for the second page here...
    
    ‹!--nextpage--›
    
    [toc type="left"]
    [toc_item title="1. Introduction" page="1"]
    [toc_item title="2. More Information" page="2"]
    [toc_item title="3. Even More Information" page="3"]
    [/toc]
    
    ...Content for the third page here...

    Finally, I noticed you wrote [toc type=”left, right, block”] in the example you gave, so I’m assuming you entered in your table of contents code by clicking one of the shortcode buttons. Keep in mind that when you select one of these buttons, it generates an example of the shortcodes with all options available for each attribute. In other words. for the table of contents you can either select to display it left, right, or block, but not all of them. Ensure that all of these options are set correctly too to avoid any potential errors.

    Let us know if you need any further assistance understanding how the table of contents shortcode works.

    Thanks!

    #1360

    Juan Z
    Participant

    two words to sum it all up: Thank you

    #1362

    Kory
    Keymaster

    No problem, Juan! 🙂 Please don’t hesitate to ask us for clarification on anything.

    #289548

    CropSol
    Participant

    Hi, I am struggling with this too.
    Have done as above:

    [custom_headline type=”left” level=”h2″ looks_like=”h3″ accent=”true”]Insect Net[/custom_headline]

    [toc title=”TECHNICAL INFO.” type=”left”] [toc_item title=”1. Background” page=”1″] [toc_item title=”2. Specification” page=”2″] [toc_item title=”3. Mesh Sizes” page=”3″] [toc_item title=”4. Widths & Lengths” page=”4″] [toc_item title=”5. Lead Times” page=”5″] [toc_item title=”6. How to Use” page=”6″] [toc_item title=”7. Key Advantages” page=”7″] [/toc]

    text for item 1
    <!–nextpage–>

    [toc type=”left”] [toc_item title=”1. Background” page=”1″] [toc_item title=”2. Specification” page=”2″] [toc_item title=”3. Mesh Sizes” page=”3″] [toc_item title=”4. Widths & Lengths” page=”4″] [toc_item title=”5. Lead Times” page=”5″] [toc_item title=”6. How to Use” page=”6″] [toc_item title=”7. Key Advantages” page=”7″] [/toc]

    Text for item 2
    <!–nextpage–>

    But get this a table next to each section

    #290283

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.