Custom post fields
I am setting up a network of aggregator blogs using the FeedWordpress plugin. All of the feed and publisher information that FWP provides is stored in the custom post fields.
Is there a way - using your template "tags" - to extract that custom field information? For instance, what I'd like to do is display a byline something like Posted by Joe from XYZ blog on January 15, 2009 Normally, to do this, I would just code the FWP template fields inside the index.php or single.php files. I suppose I could do this with your templates as well, but I'd hate to break one and later have my modifications overwritten. So, can I access the custom fields somehow? |
The theme is not prepared to display custom fields. You would have to put the code to retrieve the custom field value somewhere into the theme files. I.e. into bfa_postinfo.php,
somewhere before PHP Code:
PHP Code:
PHP Code:
PHP Code:
Then you would be able to use %from-xyz-blog% as a postinfo tag at Atahualpa Theme Options -> Post / Page Info Items |
I was just about to ask about Custom Fields and saw this thread. I'm not good at php coding, so I want to be sure I'm getting this-
I'm wanting to use the Custom Fields in my sidebar to have this: Listening to: Reading: Event: (Etc.-I have a list of 5 things) Can I do this? Thanks, Ash |
Looks like this widget can do that http://wordpress.org/extend/plugins/...-field-widget/
|
Thanks Flynn,
I couldn't get that plugin to unzip I have the 'More Fields' plugin and see the custom fields boxes at the bottom of the write/edit page in site admin. But the directions say coding needs to be added and I'm not sure where to add it. http://codex.wordpress.org/Using_Custom_Fields |
Quote:
|
i also installed custom fields template, and i modded the bfa_postinfo.php:
Quote:
|
Quote:
Code:
Posted by %author-posts-link% from <a href="%meta('syndication_source_uri')%">%meta('syndication_source')%</a> on %date('d#/m#/y')% |
So, I am using the solution above BUT it does not work with posts that are not syndicated, giving me the
Code:
Warning: implode() [function.implode]: Bad arguments. in /var/www/wordpress/wp-content/themes/atahualpa/functions/bfa_postinfo.php on line 16 |
All times are GMT -6. The time now is 09:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.