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?


  #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,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

Bookmarks

Tags
custom, php



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 11:58 AM.


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