WordPress.org

Support

Support » Plugins and Hacks » Link View » [Resolved] using the attribute link_items: how to insert the JSON data into the shortcode.

[Resolved] using the attribute link_items: how to insert the JSON data into the shortcode.

  • hello,
    Sorry if my English is not very good: I am French and I use Google translation.
    I discovered your plugin which is exactelly what I want. In fact, I wish I could display the image + description + notes on each link.
    But I have a problem to use the attribute link_items because I don’t understand how to insert the JSON data into the shortcode.
    This would be fine: {“name”: “”, “left”: {image_l “:” “,” address_l “:” URL “},” right “: {” description “:” Description: “,” notes “” Notes: “}}
    But I don’t know where and how to insert into the following shortcode: [ linkview cat_name =”Sites in Burgundy” ]
    Thank you in advance for your help

    http://wordpress.org/extend/plugins/link-view/

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

    @mibuthu

    Try this one:
    [linkview cat_name="Sites in Burgundy" link_items='{"image_l":"","description":"","notes":""}']

    Thank you for your quick response.
    It’s perfect, it works! This is exactly what I wanted!

    I didn’t understand the sentence:

    Please use single quotes for defining this attribute because you require the double quotes to define the JSON code

    So, I had not put single quotes in my code.

    Allow me one more question: how to get the name of the link beside the image, instead of below?
    I ‘d like to see the first line with the image on the left and the site name right, then a second line with the address and then the description. I think it is possible in CSS but I’m not very good … :/

    I’m trying to get output like this for each link:

    Using:

    PR Log
    PR Log is an online press release distribution and press release submission service.

    Here’s what we’re getting:

    • PR Log
      PR Log is an online press release distribution and press release submission service.
    • PR Log
      PR Log is an online press release distribution and press release submission service.

    What shortcode should we be using?

    Thanks in advance, great plugin. 🙂

    Sorry, we’re using this shortcode, in brackets:

    linkview cat_name=”Press Release Services” link_items='{“url”:””,”description”:””}’

    Okay, took a lot of trial and error but I got it.

    For others if they need it, in shortcode brackets:

    linkview cat_name=”Press Release Services” link_items='{ “name_l”: “”, “description”: “” }’

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] using the attribute link_items: how to insert the JSON data into the shortcode.’ is closed to new replies.
Skip to toolbar