How to get page ID inside a tag
Permalink
edit: I've made it work, all i needed to do is make the code look like this: <?php echo ThumbsUp::item($c->getCollectionID()) ?>
Hi,
I'm not a programmer, but here's what I want to do:
I have this:
And I want instead of item_name to have the page ID.
So, I've tried this:
But, as you might know, that doesn't work and I don't know how to syntax (or what's it called), in order to call the page ID instead of item_name.
Hi,
I'm not a programmer, but here's what I want to do:
I have this:
<?php echo ThumbsUp::item('item_name') ?>
And I want instead of item_name to have the page ID.
So, I've tried this:
<?php echo ThumbsUp::item('<?php echo $c->getCollectionID(); ?>') ?>
But, as you might know, that doesn't work and I don't know how to syntax (or what's it called), in order to call the page ID instead of item_name.