Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119388

jamesckemp on "[Plugin: Magento Wordpress Integration] call blocks for only one page"

$
0
0

Hi Nick,

You'll want to use WordPress conditional tags in your templates, for example:

if(is_page('page-slug')) { the_block('your-block'); }

or

if(is_page(25)) { the_block('your-block'); }

where 25 is the page id. This will mean the block only shows on that page.

http://codex.wordpress.org/Function_Reference/is_page


Viewing all articles
Browse latest Browse all 119388

Trending Articles