• Resolved dccharron

    (@dccharron)


    Many thanks for this great plugin. I have used your fine work for 3 years and it works beautifully. Sorry to hear about your difficulties with WP officialdom. Shame on WP.

    I’ve just tried using your cfdb-json shortcode. I’ve worked out how to integrate it into a WP page using a combination of PHP and Javascript. When I view the page, provided I am signed on as Admin on the website, the page works perfectly. But when I sign out and view the page, the shortcode doesn’t generate any data. Is that the intention or did I do something wrong?

    My page starts with a number of HTML with fields each with a unique “id=” then some PHP that does a “do-shortcode” of your cfdb-json putting the results into a PHP variable. I then strip out your <script> and </script) out of that variable but keep the JSON data fields. I then write my own JS script that uses your JSON data objects to put the data into the HTML fields using JS HTML DOM commands.

    I’ve previously used your cfdb-table shortcode (not quite the same way) and it did not require me to be logged in. Any suggestions?

    • This topic was modified 6 years, 11 months ago by dccharron.
Viewing 1 replies (of 1 total)
  • Thread Starter dccharron

    (@dccharron)

    Oops. I discovered I was using the wrong shortcode. I should have been using

    [cfdb-html]

    Exactly what I needed.

Viewing 1 replies (of 1 total)
  • The topic ‘cfdb-json only works when logged in’ is closed to new replies.