WordPress.org

Ready to get started?Download WordPress

Forums

Make shortcode output searchable (1 post)

  1. qBart
    Member
    Posted 8 months ago #

    So I have this shortcode that outputs a file I uploaded elsewhere on the internet.
    It does so on every page load.
    This means that the shortcode content isn't in the WordPress database.

    How can I get shortcode output in the WordPress database?
    It should refresh and check the external file periodically, to update the content in the WordPress database.

    Currently I simple use (one line of code)
    return '<div class="this">' . $stuff . '</div>';

    I would like to know how I can make sure that this $stuff also gets into the WordPress library.

    Thanks!

Reply

You must log in to post.

About this Topic