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 »

Custom field template tag

Old Nov 5, 2012, 03:46 AM
6 posts · Nov 2012

I have found the template_tags.php include file and I am trying to add a custom template tag that will display custom field data for each post.

Here is what I have for a test:

function bfa_post_link() {
	$id = get_the_ID();
	echo 'This is the current post ID: '.$id;
I want to use this in a sub-template, however when I insert my custom template tag ( bfa_post_link(); ), it doesn't display anything. Do I need to declare this function in another file somewhere so it loads with the rest or something similar?

Ps: Is there any other easier way of displaying custom field data for each post in Montezuma's virtual template system?

Any help or advice is much appreciated.

Old Nov 5, 2012, 01:05 PM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Currently custom fields are not supported. I'll ask the developer about this.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Nov 5, 2012, 01:29 PM
6 posts · Nov 2012
Oh I see, it would be very helpful to have this support. Thanks, I look forward to your reply.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show custom field in kicker - only IF field value exists jaxon Center area post/pages 13 Feb 6, 2013 01:11 PM
Custom field template - show on posts.. uffehs Atahualpa 3 Wordpress theme 5 Apr 6, 2012 03:31 PM
Using a custom field within an excerpt... or trying to arthurmild Excerpts, Read more, Pagination 4 Jan 5, 2011 04:40 AM
Button with Custom Field Xethon Sidebars & Widgets 0 Sep 17, 2010 04:08 AM
Custom field image with custom field link mbastos Atahualpa 3 Wordpress theme 1 Jul 1, 2010 08:17 AM

All times are GMT -6. The time now is 07:48 AM.

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