Skip to main content
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"
Saves in:saves
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 not deleted user 43893

Post meta is a data set containing additional core as well as custom post information.

0 votes
2 answers
2k views

User function to return multiple get_post_meta()

I am trying pass a WP function to a user function, where I can pass a new func argument $key for each post_meta type here: functions.php function my_post_meta($key){ $meta = get_post_meta($ …
user1575949's user avatar
1 vote

User function to return multiple get_post_meta()

As I wanted to put the if() statement into a function - continuing on from s_ha_dum's help, here is my own answer. I included the second argument so as only return the keys I need. I am passing the …
user1575949's user avatar
0 votes
1 answer
255 views

Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy

Scenario: I have a custom post type with custom meta boxes. Each post should represent a row in my table i.e Activity 1 Jan, Activity 1 Feb and Activity 1 Mar I have a custom taxonomy of terms fo …
user1575949's user avatar
0 votes

Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy

This is my own solution, improvements welcome :) Check for term ID and assign to variable. $term_id = (has_term('activity_1','activity-tax') ? 1 : (has_term('activity_2','activity-tax') ? 2 : (has_t …
user1575949's user avatar