Support » Plugins » Hacks » How to Fetch ALL Post Titles Into an iFrame?

  • 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?

  • The topic ‘How to Fetch ALL Post Titles Into an iFrame?’ is closed to new replies.