• hello,

    i build a shortcode in wordpress that show latest posts in accordion style. codes of this file : https://aidigroup.org/accordian_posts.txt

    now, i want update posts list when i insert a new posts. update content/posts list every 1 minute. how i do it?
    i know must be use jquery / ajax but i don’t know how it.

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    After the shortcode is replaced in the content, there is no specific way to know where the shortcode was to update that block again.

    Best is to put the initial shortcode content in an element like a div With a unique ID and update that div Every minute with Ajax and Javascript setTimeout Function.

    Thread Starter vahidmoghadam

    (@vahidmoghadam)

    Thanks for answering,
    Is it possible to explain and give an example? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to reload shortcode content without refresh page?’ is closed to new replies.