• Resolved wildfiree

    (@wildfiree)


    I was trying to use your plugin and was unsuccessful in assembling several support topics together. My goal is to have the plugin output only job posts from a specific company on a job board, but the source has a multiple nested array structure. My attempt is below; if this exceeds the limits of the free version, but is possible on Pro, please let me know. If this coding would necessitate private consult, I am willing to go that route as well. Thank you for your plugin.

    [jsoncontentimporter url=https://jobs.gorails.com/jobs.json oneofthesewordsmustbein="DevelopMetrics" oneofthesewordsmustbeindepth=2 basenode=data] {type} #{id} {subloop-array:attributes:-1}{attributes.title} {attributes.location}{subloop-array:salary:-1} {subloop-array:minimum:-1} {minimum.cents}{subloop-array:minimum} {subloop-array:maximum:-1}{maximum.cents}{subloop-array:maximum}{/subloop-array:salary}{subloop-array:links:-1} <a href="{links.self}" target="_blank" rel="noopener">Apply Now</a><br>{/subloop-array:links}{/subloop-array:attributes}[/jsoncontentimporter]
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi, check this Shortcode,please:

    [jsoncontentimporter url=https://jobs.gorails.com/jobs.json oneofthesewordsmustbein="DevelopMetrics" oneofthesewordsmustbeindepth=2 basenode=data] 
    <div style="display:none">{subloop:attributes.company:-1}{attributes.company.name}{/subloop:attributes.company} </div>
    {type} #{id} 
    {subloop:attributes:-1}{attributes.title} {attributes.location}
    {subloop:attributes.company:-1}attributes.company.name={attributes.company.name}<br>{/subloop:attributes.company} 
    {subloop:attributes.salary:-1} 
    attributes.salary.schedule={attributes.salary.schedule}
    {subloop:attributes.salary.minimum:-1}maximum={attributes.salary.minimum.cents}{/subloop:attributes.salary.minimum}
    {subloop:attributes.salary.maximum:-1}maximum={attributes.salary.maximum.cents}{/subloop:attributes.salary.maximum}
    {/subloop:attributes.salary}
    {subloop:links:-1} <a href="{links.self}" target="_blank" rel="noopener">Apply Now</a><br>{/subloop:links}
    {/subloop:attributes}
    [/jsoncontentimporter]

    Bernhard

    Thread Starter wildfiree

    (@wildfiree)

    RESOLVED.

    Your shortcode worked. Thank you very much for your assistance. The nested array presented me significant challenges and I was unable to find anyone with this problem previously on this plugin’s forums.

    Plugin Author berkux

    (@berkux)

    You‘re welcome. Feel free to write an review at https://www.ads-software.com/support/plugin/json-content-importer/reviews/

    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nested Array on Job Board’ is closed to new replies.