WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Snippets] How do I integrate a snippet into my post query thingy?

[Plugin: Snippets] How do I integrate a snippet into my post query thingy?

  • How do I integrate a snippet into my post query thingy?

    for example… i want to do this… (it doesn’t work by the way)

    <?php $recent = new WP_Query(‘cat=<?php snippets_value( ‘XYZABC’ ); ?>&showposts=1′); while($recent->have_posts()) : $recent->the_post();?>

    this is the error i get…
    Parse error: syntax error, unexpected T_STRING in /home/flower16/public_html/wp-content/themes/FlowersEddy/home.php on line 5

    Thanks heaps

    http://wordpress.org/extend/plugins/snippets/

  • The topic ‘[Plugin: Snippets] How do I integrate a snippet into my post query thingy?’ is closed to new replies.
Skip to toolbar