• Resolved dtbcinci

    (@dtbcinci)


    The plugin is working great but now I have a Json feed that is not from Udemy and I only want to pull in one complete line of the Json file at a time into a post.

    Example of Json File
    “__class”: “course”,
    “id”: 30240,
    “title”: “The Ultimate Web Development Course – Udemy”,
    “full_price”: 199,
    “reduced_price”: 20,
    “coupon”: “FRAZZIN”
    },

    I have tried using your new oneOfTheseWordsMustBeIn to pull just the unique info by id, but it does not seem to work.

    Am I doing something wrong or is there a way to pull just the needed info from the Json file without loading the whole file?

    https://www.ads-software.com/plugins/json-content-importer/

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

    (@berkux)

    oneOfTheseWordsMustBeIn is yet only a dummy…
    My idea:
    if oneOfTheseWordsMustBeIn=”something” then the string “something” must be in the resulting html. if not, the complete html is ignored and empty.
    if yes, the html is used as always…

    Thread Starter dtbcinci

    (@dtbcinci)

    Sorry I was hoping that it was a working item in your script. Is there anyway to present only one variable in the json file. Such as id number: 12345, title: dog and so on??

    Plugin Author berkux

    (@berkux)

    if the template is only {title} then only “The Ultimate Web Development Course – Udemy” is displayed.

    Plugin Author berkux

    (@berkux)

    New in Version 1.2.0: shortcode-parameter “oneofthesewordsmustbein” and “oneofthesewordsmustbeindepth” are added

    Thread Starter dtbcinci

    (@dtbcinci)

    berkux,

    Thank you very much for adding that into your product!!!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show only one item from Json’ is closed to new replies.