• Resolved uhg

    (@uhg)


    Hi there, first – awesome plugin. I love I can just drop a file in my theme to change both the CSS and the template.

    But im having trouble adding a resume to a page template.
    I tried with <php do_shortcode('[wp_resume]'); ?> which diddnt work.
    I also tried to include my own resume.php in my page template, that rendered the resume, but threw a fata error afterwards so the rest of the page diddnt render.

    <?php include (TEMPLATEPATH . '/resume.php'); ?>
    And the error: Fatal error: Cannot use object of type WP_Query as array in <snip>/wp-includes/query.php on line 2822

    Any ideas on how to get either methods to work?

    http://wordpress.org/extend/plugins/wp-resume/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ben Balter

    (@benbalter)

    I tried with echo do_shortcode( '[wp_resume user="user"]' ); and it seemed to work. Note 1) you need to echo the return from do_shortcode and 2) you may need to specify a user since it normally gets it from the page/post the shortcode is embedded in.

    To bypass the error if calling directly, remove the wp_reset_query() from the bottom of resume.php since your not in the loop.

    Thread Starter uhg

    (@uhg)

    Ack! Yeah, that echo was the magic word. How noobish of me 😛 Thanks for feedback.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Resume] Add resume to page template’ is closed to new replies.