• Resolved ecollart

    (@ecollart)


    Hello,

    can I insert a shortcode in an existing page .
    I wonder if I can add one link under each text of the list using a shortcode like [wp_links_page display=”list” num=”1″ ids=”434″] ?

    It just doesn’t work …

    Thanks for help

    Eric Collart

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rico Macchi

    (@rico-macchi)

    Hello,
    Yes, you can insert the shortcode in post or page and even widget.
    The only thing I can think why it might not be working for you is an incorrect ID?
    Make sure you get the ID from the URL that will show on the bottom left of your screen when you hover your mouse over the link on the all links page.

    This article may help https://pagely.com/blog/find-post-id-wordpress/

    Thread Starter ecollart

    (@ecollart)

    Hello,
    thanks for your support !
    ID is the same hovering over the link or looking in list…
    You cou check the screenshot
    https://u.pcloud.link/publink/show?code=XZXoN4XZMDknjaSz3X07v5shNH9rOLUf11Uk
    I use the shortcode [wp_links_page display=”list” num=”1″ ids=”434″] in the page (you can see in page source code.
    Could it be because the ID is 3 digits and not 4 as in all examples I saw so far ?

    Eric

    Thread Starter ecollart

    (@ecollart)

    Ah, I make it working using
    [wp_links_page display=”list” num=”1″ pager=”none” load_more=”View More” orderby=”title” order=”ASC” cat=”149″ tag=”150,151″ image=”ss” img_size=”medium” img_style=”border: 3px solid black; ” title=”display” title_style=”font-weight: bold; text-align: left” desc=”content”]

    I would prefer to select by ID to be sure over time to display only the good one !

    I left the non working shortcode in place just after the working one if you want to check…

    So probably a syntax problem somewhere or the ID being only 3 digits…

    Eric

    Thread Starter ecollart

    (@ecollart)

    Ok I found the problem !
    It’s caused by the double quotes being different on some fields ! In my case for ids and for display for whatever reason !

    So problem solved ! Sorry for overhead as I didn’t notice those double-quotes being like italic instead of vertical …

    I don’t know from where it comes but could be the cut & paste or the editor used (Classic Editor here). The code pasted above is even more scrambled with 1 double-quote on 2 being wrong… Crazy !

    Could help some others as well !

    Thanks again for the support !
    Eric Collart

    • This reply was modified 3 years, 11 months ago by ecollart.
    • This reply was modified 3 years, 11 months ago by ecollart.
    • This reply was modified 3 years, 11 months ago by ecollart.
    • This reply was modified 3 years, 11 months ago by ecollart.
    Plugin Author Rico Macchi

    (@rico-macchi)

    I am glad you figured it out…
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to use shortcodes ?’ is closed to new replies.