I am using the More Fields plugin which gives me the ability to create a date formatted YYYY/mm/dd and I want to convert that to be shown like: February...
Is it possible to check if a custom field exists for a given post within the loop? For example, I’m using functions like get_post_meta($post->ID, 'Company', true); preceded by a...
I am curious without doing a ton of benchmarks, how others feel about using several custom meta fields on a blog post? I am talking strictly performance wise, does...
I searched for a while but I didn’t find any solution. I used the functions listed here. It outputs something like this: Array ( [0] => 15 [1] =>...
In my plugin, I use these instructions to obtain a list of posts: $args = array( 'numberposts' => -1, 'offset' => 0, 'meta_query' => array( array( 'key' => 'metadata1',...
I have over 1000 posts. Each post has a custom field XYZ. I’m looking for a function that I can run once that will assign a value of 1...
I’ve created custom taxonomy called ‘cities’ where you can add cities and added custom field ( radio button ) with 2 options: ‘Yes’ and ‘No’ ( never mind what...
I have custom fields in my custom post type. They should serve as a title and post slug for URL. Basically, whenever I change the content of the custom...
I’ll admit, I’m not a PHP expert, nor am I familiar with all of the WordPress functions and hooks. I’ve been stuck on an issue, searching for help without...
I want to order WP posts by meta key named “sort_date” and if it doesn’t exist it should use the post’s published date to order posts. Below is the...