custom fields

Calling custom fields for next/previous posts

Custom fields are definitely very useful and are used on many WordPress installs. Today I’m going to show you how to easily get custom fields values outside the loop.

The post Calling custom fields for next/previous posts appeared first on WPCult.




custom fields

Echo custom fields in any category

Here is a neat trick. Say you want to show a custom field in you post or in a certain categories post. There is a simple code you need to write in order to accomplish this: <?php $image = get_post_meta($post->ID, "image", $single = true); ?> <?php if($image != '') : if(in_category(7)) { echo ''; } […]

The post Echo custom fields in any category appeared first on WPCult.




custom fields

Wierd custom fields

I am not sure if this is from a pluigin error. But I suddenly have custom field names “atfemail_” and random letters and digits @ random numbers and digits dot com. hmm.. Any idea’s? I think it may be from the subscribe to comments plugin.

The post Wierd custom fields appeared first on WPCult.




custom fields

Pulling custom fields from outside the loop

In the last post “Creating a custom widget” I showed you how to create a custom widget. Well in this post I will show you how I used my custom widget to display all post with a certain custom field from outside the WordPress loop. In the last post I used this tag: <?php include(TEMPLATEPATH […]

The post Pulling custom fields from outside the loop appeared first on WPCult.