Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Where to place custom PHP?


  #1  
Old Jan 26, 2014, 03:37 AM
edent
 
1 posts · Jan 2014
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.
  #2  
Old Jan 26, 2014, 07:35 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
custom, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pagination with Custom Post types, and Custom Page template magesm Atahualpa 3 Wordpress theme 3 Nov 6, 2013 05:48 PM
Place Custom Menu Code with CSS & Javascript Looks Ugly GRF Sidebars & Widgets 7 Jul 22, 2012 11:00 AM
Place a custom element (any text) somewhere on the home page jrobie23 Header configuration & styling 4 Dec 30, 2011 01:40 PM
how to place and where to place a sign up box zizi Header configuration & styling 5 Oct 10, 2010 08:41 PM
want to place clickable icons in place of links (Home, About, etc.) agrossman Header configuration & styling 2 Aug 13, 2009 03:45 PM


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


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