• Searched on this topic and found some that was more of a “can you” versus my issue, which is a “why isn’t this working” issue.

    First, I know the downsides of an iframe. But I have a full page jQuery horizontal accordion (that I did not write, I can’t program, period, I just cut/paste code I find) and I can’t figure out how to get wordpress loop to move to previous posts without reloading the accordion, which would default to its open panel (which may not be the one you are on).

    So, I set the link of the iframe to loop.php. Fail. Get this:

    Notice: Undefined variable: wp_query in C:\wamp\www\wp-cuyuna\wp-content\themes\onlygoodaccordian\loop.php on line 4

    Notice: Trying to get property of non-object in C:\wamp\www\wp-cuyuna\wp-content\themes\onlygoodaccordian\loop.php on line 4

    Fatal error: Call to undefined function have_posts() in C:\wamp\www\wp-cuyuna\wp-content\themes\onlygoodaccordian\loop.php on line 12

    So I take the index.php from the twentyten theme, remove the calls for the header and footer and save it as news.php. Fail. Get this:

    Fatal error: Call to undefined function get_template_part() in C:\wamp\www\wp-cuyuna\wp-content\themes\onlygoodaccordian\news.php on line 11

    I would appreciate any and all help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress loop within an iframe fails’ is closed to new replies.