Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Where to place custom PHP? (http://forum.bytesforall.com/showthread.php?t=21435)

edent Jan 26, 2014 02:37 AM

Where to place custom PHP?
 
I'm getting a little confused with the virtual templating system. I understand that I can only use a *limited* set of PHP in the Montezuma options.

What I want to do is place the following line

PHP Code:

<?php if(function_exists('the_views')) { the_views(); } ?>

After the post's title. (It's to show the number of page views).

So, if I can't put that in the virtual theme - which file do I need to edit in order to have my titles display as "$Title - $Number_of_Comments - $Number_of_Pageviews"?

Thanks for an amazing theme.

juggledad Jan 26, 2014 06:35 PM

add a widget area in the code where you want this. use a plugin like 'exec-php' and then put that code in a text widgit in the new widget area.


All times are GMT -6. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.