Articles of custom field

“Matching” or “Linking” Two WordPress Pages: Custom Fields?

I’m helping with a custom multi language site. We have one page in English, then an equivalent page in French. I’ve got a “SWITCH LANGUAGE” link in the main container (next to the breadcrumbs) that takes you to the English home page if on any French page, and vice versa. Aside from using a plugin, […]

How to pass custom field value to shortcode?

I want to call custom field in single.php template to complete a short code and thus show a menu. I places the below code but it is not working <?php echo do_shortcode(“[custommenu menu=<?php echo get_post_meta($post->ID, ‘tabmenu’, true); ?>]?>”)

Geocoding an Exploded Custom Field Array

So, I’m having a little problem with crossing signals in WordPress between Google Maps’ API and an exploded custom field. I want to be able to geocode an address that’s been exploded from a custom field, formatted “name,address”: <?php $trucks = get_post_meta($post->ID, “truck”, false); if ($trucks[0]==””) { ?> <p>No Trucks Operating Today</p> <?php } else […]

Problem uploading different files as custom fields with front end post form

I have a front end post form that I’m having some problems getting the right path for the media to save as custom fields. The path to the file gets saved as mysite.com/home/betauser/public_html/betatheme/wp_content/….file path. How do I get the path to save correctly? <?php if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] && !empty( $_POST[‘action’] ) && $_POST[‘action’] == […]

Order custom posts by taxonomy, then by meta_key

I’ve created a custom post type called Player Manager, where I have all the players of a football team. The CPT has four different categories – goalkeepers, defenders, midfielders and strikers. I also gave it a few text fields, where the only important one, for now, is “number”. Here’s how I’d like it to show […]

Adding extra fields to front end signup form

I’ve been reading around and looking for a front-end signup form (not using plugins!) and came across this – http://net.tutsplus.com/tutorials/wordpress/quick-tip-making-a-fancy-wordpress-register-form-from-scratch/ <div id=”register-form”> <div class=”title”> <h1>Register your Account</h1> <span>Sign Up with us and Enjoy!</span> </div> <form action=”<?php echo site_url(‘wp-login.php?action=register’, ‘login_post’) ?>” method=”post”> <input type=”text” name=”user_login” value=”Username” id=”user_login” class=”input” /> <input type=”text” name=”user_email” value=”E-Mail” id=”user_email” class=”input” /> […]

custom comment_form fields not displaying

My ideal comment form will have 3 fields- Name, Location, Comment. I’m using the following bits of code- comments.php <?php comment_form( array( ‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ), ‘comment_notes_after’ => ‘ ‘, ‘title_reply’ => ‘Please feel free to share your home owning hopes, dreams, or concerns?’, ‘logged_in_as’ => ”, ) ); ?> functions.php <?php function […]

How to delete file uploaded by Plupload

I follow the steps from here to integrate the plupload in metabox. Everything is working fine. But I did find one disadvantage of this guide. When I click the ‘Remove’ link from the uploaded images, it only removed it from the post, not actually deleting it in the directory. Another example of using plupload in […]

WP-eComerce Advance Meta Tag data in descending order

I am use WP-Ecommerce plugins for ecommerce support Now i am set custom meta like this and it will display in ascending order like this so i need to display it in descending order how can i do this? please help me. Thanks in advance.

How to store meta field values

I would like to store a few extra details for my custom post type, using meta boxes. Should I store all the values under one meta key in an array, or create several meta key and value pairs?