Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options user 23492

Custom Fields are fields that can hold arbitrary extra information known as meta-data.

0
votes
1answer
The site I'm working on is a talent website that has actors names, headshots, and resume all created with post_title, featured images, and custom fields. I am using Relavanssi to make my search resul …
asked Mar 24 '13 by Eckstein
0
votes
OK, via WPQuestions.com I was able to get someone to figure this out. It requires 2 functions, 1 to handle posting on the front-end and another to handle posting on the back-end. Because ACF uses a cu …
answered Mar 23 '13 by Eckstein
3
votes
2answers
In a custom post type I have post titles disabled, however in the list of posts and in the slug it just shows the title as "auto-draft". I want to automatically take two pieces of post-meta and make t …
asked Apr 3 '13 by Eckstein
1
vote
3answers
I've searched around but I can't quite pin down the answer for this. I am attempting to use the content of a custom field as post_data and save it to the database as such when a post is created or upd …
asked Mar 23 '13 by Eckstein
0
votes
1answer
I am attempting to take some custom field meta data (generated via the ACF plugin) and save it as post meta with a function. This is what I've come up with: function tps_create_slotcode($post_id) { …
asked May 2 '15 by Eckstein
4
votes
2answers
I am using this following code in my functions file to hide and add some custom columns to my post-edit screen in wp-admin. I am now trying to get the post list to sort by a post meta field (last nam …
asked Feb 2 '13 by Eckstein
0
votes
For those landing here, you could always just create a custom page template on a private page and then just throw something like this on the template page file: /*Template Name: Test Post Meta */ $th …
answered Aug 21 '16 by Eckstein
2
votes
2answers
I am trying to update the value of one custom post type's meta when another custom post type is deleted. When a space_rental is deleted, I need to update some meta value on a space. I don't think I …
asked Dec 23 '16 by Eckstein
0
votes
Use a special category to specify what pages you want on your home page. For the sake of this example, we'll call it "Featured". So on each page that you want to show, just add the "Featured" catego …
answered Jun 17 '13 by Eckstein
0
votes
Figured it out. I had to re-read the codex a lot to figure out that when you pass an array to update_post_meta it is serialized. By using maybe_unserialize() on the return value I was able to to get a …
answered May 2 '15 by Eckstein
0
votes
1answer
I am using this function to auto-set a post title based on a couple of custom fields: function set_event_title( $data , $postarr ) { if($data['post_type'] == 'event') { $getdate = get_post_meta …
asked Apr 4 '13 by Eckstein
4
votes
1answer
I have imported a set of posts to a new Wordpress install recently. This OLD set of posts had a set of custom fields attached to it (via post_meta using the ACF plugin). The new installation has almos …
asked May 28 '13 by Eckstein
3
votes
1answer
I am trying to get the updated value of a piece of meta when a post is saved (custom post type) but when I try to grab the updated data on the save_post hook, I get the previous data instead. I tried …
asked Sep 4 '17 by Eckstein
2
votes
Apparently in order to get the meta value right after saving the post, you have to either get the $_REQUEST['my_meta_value'] directly, or, if you need to update the database right away, you have to us …
answered Sep 4 '17 by Eckstein