WordPress.org

Ready to get started?Download WordPress

Forums

Link View
[resolved] using the attribute link_items: how to insert the JSON data into the shortcode. (6 posts)

  1. flobogo
    Member
    Posted 1 year ago #

    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/

  2. mibuthu
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. flobogo
    Member
    Posted 1 year ago #

    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 ... :/

  4. kitelife
    Member
    Posted 1 year ago #

    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. :)

  5. kitelife
    Member
    Posted 1 year ago #

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

    linkview cat_name="Press Release Services" link_items='{"url":"","description":""}'

  6. kitelife
    Member
    Posted 1 year ago #

    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": "" }'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.