How to Fetch ALL Post Titles Into an iFrame? (1 post)

  1. chaseman
    Posted 5 years ago #

    I want to fetch all post titles from the database and make them as a list visible in an iFrame inside the admin panel of the theme that I'm currently developing.

    I'm using following function to list all the post titles:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And I'm getting following error when I use the function inside an iFrame:
    Fatal error: Call to a member function get_results() on a non-object in

    The function works as expected outside of an iFrame but it does not work inside the iFrame, any suggestions, how I could make it work?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.