Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Where to place custom PHP?

Old Jan 26, 2014, 02:37 AM
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.
Old Jan 26, 2014, 06:35 PM
juggledad's Avatar
23,765 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


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 04:48 PM
Place Custom Menu Code with CSS & Javascript Looks Ugly GRF Sidebars & Widgets 7 Jul 22, 2012 10:00 AM
Place a custom element (any text) somewhere on the home page jrobie23 Header configuration & styling 4 Dec 30, 2011 12:40 PM
how to place and where to place a sign up box zizi Header configuration & styling 5 Oct 10, 2010 07:41 PM
want to place clickable icons in place of links (Home, About, etc.) agrossman Header configuration & styling 2 Aug 13, 2009 02:45 PM

All times are GMT -6. The time now is 11:03 AM.

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