Custom Fields are fields that can holds arbitrary extra information known as meta-data.
-2
votes
1answer
23 views
How can i display actor birtday links [duplicate]
Hy, i display actor retrived by a date piker, by day and month like that,
<?php
$todaysDate = date('md'); // Get today's date in the right format
$loop = new WP_Query( array(
'post_type' ...
0
votes
0answers
11 views
How to add a new custom field by AJAX?
Just like AJAX_in_Plugins and previous question update-custom-field-meta-value:
jQuery.post(ajaxurl, data, function(response) {
// update the custom field value without reload ??
});
I make ...
0
votes
0answers
24 views
How to make affiliate links show up in profile area
I have created a memberships site that is offering four different programs in it which people are able to put their own id for each program in.
What I want to achieve is to create a custom field to be ...
3
votes
1answer
71 views
Adding another state (spam, reject, approve) to wordpress comments?
i know this might sound a bit weird, but what I'm trying to do is rather simple in mind but may be technically difficult.
I'm running small contests on my wordpress site where I ask users to leave a ...
-2
votes
0answers
35 views
Getting actor by day and month [duplicate]
How can i retrive actor by birthday day and month.
I want to display the actor birthday.
"Today actors birthday" - and retrive the actors
How can i display only the actor born this day and this ...
-2
votes
1answer
55 views
How to include custom field in shortcode (do_shortcode) in theme file
To cut out a few steps and make it easier for authors, I have included a custom field for authors to enter details (may include HTML).
I want to add the custom field to a shortcode in the theme.
...
1
vote
1answer
33 views
Why is my select meta data not saving?
I am working on a site at the moment where I need to save several different types of meta data for a custom post type.
At present I have a text input that is saving with no problem but am struggling ...
-1
votes
2answers
31 views
Show User Their Password
I've got a few automated scripts that run to notify users of certain updates to the application, etc... and for one in particular, I need to be able to display the users user_login and their password.
...
0
votes
2answers
60 views
Display post_object content using ACF plugin
I have a hard time figuring out what's wrong with this code.
What I'm trying to do: setup up a custom field in admin using the ACF plugin to lists in a meta-box on all pages a list of testimonials ...
0
votes
1answer
43 views
Assign a custom post to a custom taxonomy based on custom field value
This answer does exactly what I needed to do, but the only thing is I need it to select more than just one category.
So I have changed the code to work based on salary so salary gets entered into a ...
0
votes
1answer
37 views
Adding “meta” info to WP site PHP function?
I'm asking for some grace on this question - I lack sufficient knowledge of both WP and PHP to be more specific ... so here goes:
I'd like to associate some "meta" information about my website into ...
1
vote
1answer
31 views
Is it possible to activate customfield 'text description' upon activating the customfield 'checkbox'?
I'm trying to find a solution how to activate a another customfield in WordPress pages when the selectbox is selected.
This is the script to simply show the customfield 'checkbox' in wordpress page ...
0
votes
0answers
14 views
Create a generic post type and define its metadata via another one used for categorization
Ok, I would like to share with you an idea I had and ask you what do you think about it and possible drawbacks I'm not able to forsee.
I'm building a database for an association with many kind of ...
0
votes
1answer
26 views
Display meta data from a custom field within plugin Category Grid View Gallery
I am using this plugin, which creates a gallery of posts, fetching a thumbnail and the titles of the posts displayed in it.
I have enabled Custom Fields, and have created (and filled in values) a ...
1
vote
1answer
34 views
Get specific custom field keys from a post and put into an array
I have the following code to look up the longitude and latitude based off of a custom field upon saving the post. My address fields (street_1, city and state) are separate. I have searched and thought ...
0
votes
1answer
38 views
404 on Pages for Custom Post Type & Query_Posts
It took me quite a while to find a good solution for ordering a custom post type by two custom meta keys. When I finally got it working, I found out the pagination no longer works. I've tried dozens ...
-2
votes
0answers
19 views
Need a custom fields plugin [closed]
If have done a lot of testing, but I cant find a custom fields plugin that supports duplication of custom field groups with wordpress core functions. For example when i have a group of fields with ...
0
votes
1answer
47 views
Custom post type and custom taxonomy archive inaccessible
I've created some custom post type let say:
post_type_1
post_type_2
Those post types are related to each other, every post_type_1 has parent of many post_type_2.
Then I created a custom taxonomy ...
0
votes
0answers
31 views
How to tell if string is null or empty in meta value? [closed]
I am trying to figure out how to find out if a string is null or empty in php. The place I am pulling the value from is a meta value that is stored from a meta box on the post page.
I want to check ...
0
votes
1answer
47 views
Custom Post Type Navigation on Custom Field
I'm working on a Custom Post Type sorted on a Custom Field. No problem when I list out the posts. But when I go to the single post page for one of these, I want the Prev and Next navigation links to ...
0
votes
1answer
32 views
How can I create a menu items from meta box based on users input
I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
1
vote
1answer
20 views
Trying to retrieve post meta
I have created a meta box that allows users to add an additional name/id to their post. From what I can tell it is adding the meta information correctly because when I edit a post that has a custom ...
1
vote
0answers
40 views
using advanced custom field to control css hover color
this is a bit challenging for me:
I am using the great Advanced Custom Field plugin on my site to create different color scheme to each of my taxonomy.
I created a field called taxonomy_color and ...
0
votes
1answer
61 views
Get post meta retrieving wrong value
I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
0
votes
2answers
37 views
Best way to achieve multiple links in a post title
Usually I would get a post title no problem, however now I need to achieve something like this:
The Example is written for this title
As you can see two words are links in the title, another ...
2
votes
3answers
26 views
Custom fields: In what order are they saved into the DB?
If I insert multiple custom fields to my article, they get sorted in "I don't know what" way. So when I insert some multiple fields in an article and call those via
$cf = get_post_custom();
foreach ...
0
votes
0answers
17 views
Hide Widgets depending on Custom Field Value
I have Wp-Types Toolset as my WP building blocks and with it I created a Custom Field Group called Featured Listings. Within the group I have a field called Featured Ads and that has Radio Button ...
1
vote
1answer
32 views
Extra filed under “About the user” user profile
I use the following to add Phone number,linked id etc Under the "Contact Info" in user profile. Now I have to add a filed under the "About the user". How can i do that?
function ...
-1
votes
0answers
43 views
Google map plugin fully customizable? [closed]
Any WP plugin to show Google maps in some pages with these requisites:
Some kind of API to dinamically query the location data from WP DB. Lat/long are stored in a custom field of custom post types ...
-2
votes
0answers
41 views
Best Content type/Custom Fields plugin [closed]
What is the best way/plugin to work with the custom field and custom post-types of wordpress? I've tried the 'Types' plugin witch is very advanced. But one thing it doesn't do is resizing images when ...
0
votes
0answers
24 views
field of metabox is not visisible outside the function
I have a metabox with two static fields and one more field I add in ingredients_show_box function. All three fields are visible by $_POST when I save data. But the two static fields are visible by ...
0
votes
0answers
22 views
Custom Field data only shows after manual post update
I have a custom field [address] that converts a street address and displays it on a google map on the front end post.
Upon manual post update, the latitude and longitude address co-ordinates ...
0
votes
0answers
31 views
Markup Validation Service problem with alt images
Hy,i have try over a week to validate 4 images that are retrived by a code with GD Star Rating plugin
This is the code i have:
<?php
wp_gdsr_render_rating_results(array('template_id' => 49, ...
1
vote
1answer
20 views
Multiple URLS per post non-ascii
I am looking for some best practice / practical advise on a particular URL use case. I am finding myself using a lot of non-ASCII characters in my URLs. This doesn't really make it easy for users of ...
0
votes
0answers
47 views
wp custom field image and text multiple time
from previews example link
try to achieve this link
this is working but is recreating double time the $text and $image
and how can i create a new table to wrap every time a call the text and image?
...
0
votes
1answer
17 views
I want to add a custom field in the rss title of each post, but don't want it to be shown on the site
I've seen that other sites have done this but didn't manage to do it myself.
I have certain custom fields for each post and I want one of these custom fields to be shown in the RSS feed in the title ...
0
votes
1answer
34 views
Wordpress built in custom fields don't validate or sanitize? Is there a way to fix this?
I'm surprised to see that when creating post meta using the default/built in custom fields on the post editor page it allows you to enter tags like:
<a>,<script>,etc.
I then ...
0
votes
1answer
67 views
nextgen gallery: how to get picture url by gallery id
All posts in my site have custom field with nextgen gallery ID. To display gallery I use this code:
$gallery_id = get_post_meta( $post->ID, 'galerijos_id', true); // Get gallery id from custom ...
0
votes
0answers
10 views
problem retrieving specific custom meta [duplicate]
I want to retrieve just 2 custom fields from my post, this is what I've tried:
<?php echo get_post_meta(get_the_ID(), 'CLUB','DATES', true); ?>
This code is retrieving just the first one ...
0
votes
2answers
44 views
display specific custom fields
I have few custom field assigned for each post, like:
"Club" with value "club1"
"Date" with value "date1"
and so on...
Now, I want to display from all the custom fields just those 2 " club" and ...
1
vote
1answer
51 views
Custom Metabox additional item
I have a custom metabox that have 2 options: URL and a text box called "testimonial".
The URL box is working great(when i put some text in this field on admin, the text appears on site), but the ...
-1
votes
1answer
67 views
How I can change PayPal IPN 'custom' field in woocommerce?
I use Woocommerce plugin. All works great, but I need add to PayPal IPN 'custom' field only 1 word instead "order_id" that writes at 'custom' field now.
I trying edit this file:
...
0
votes
0answers
13 views
I need to display a joomla table into a wordpress site
I need to display a database that is made in joomla, into a wordpress site. I tried to import CSV file, I get the data but display is wrong.
I want to see the database in wordpress the same way I ...
0
votes
0answers
60 views
How can I add remote content like MP3 URLs to the media library?
Currently am storing the URLs in post custom fields but would it be better to move the custom field links to media library so that it would be easier to assign to certain users.
What am trying to do ...
1
vote
1answer
34 views
Remove wrong dashes from get_the_title()
I have a particular CPT post that has a dash (-) in its title. I copy this title in a variable $var using get_the_title() then I create a custom field somewhere else with a value equal to $var : ...
0
votes
0answers
34 views
Convert date format in meta
I have been storing date format in meta key/value. I have been storing in this format (mm/dd/YYYY) now I need to convert that into (YYYYMMDD) SO I can run a date match in query.
Please advice how can ...
0
votes
1answer
25 views
Custom metaboxes not saving after switching themes
I recently switched themes and copied over my metaboxes from the old functions.php into the new one. They show up but when I click publish/edit they dont save
add_action( 'add_meta_boxes', ...
0
votes
0answers
16 views
Private feedback on users
I am trying to find a way for users to write private/anonymous feedback on each other (similar to ebay or amazon but private, and so that users can view feedback on them and feedback they have sent).
...
0
votes
1answer
18 views
Output custom field as ul list
I have a custom field who's content I would like to output as a ul list.
The custom field contains words that are separated with a spaces between.
I'm trying to use this code here but it's not ...
0
votes
1answer
16 views
How can i retrive a text from a custom field
I retrieve the date of an actor by selecting the date. 'data_nasterii' is the name of the custom field.
<?php $data = get_field('data_nasterii'); echo date("d/m/Y", strtotime($data)); ?>
If i ...


