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)
-   -   Custom field template tag (http://forum.bytesforall.com/showthread.php?t=18841)

ripz7 Nov 5, 2012 04:46 AM

Custom field template tag
 
Hi,

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:

Code:

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.

Thanks

juggledad Nov 5, 2012 02:05 PM

Currently custom fields are not supported. I'll ask the developer about this.

ripz7 Nov 5, 2012 02:29 PM

Oh I see, it would be very helpful to have this support. Thanks, I look forward to your reply.


All times are GMT -6. The time now is 08:12 PM.

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