Reputation: 77
Hello how can i print in php the function get_option('item')
For example like this, but doesn't works
<?php include '_includes/items/item_1.php';?>
instead of item_1
to put get_option('item')
Any ideea?
Upvotes: 1
Views: 137
Reputation: 2517
See code below.
include '_includes/items/'.get_option('item').'.php';
Upvotes: 1