Custom Fields are fields that can holds arbitrary extra information known as meta-data.
0
votes
1answer
148 views
Wordpress metaboxes - textfield suggestion automatically populated
[Long story short]
Is there any Wordpress plugin/function that would allow the creation/integration of a metabox's textfield that automatically populates a dropdown menu (in the admin area, while in ...
0
votes
0answers
64 views
Create multiple checkboxes in a metabox
I am trying to figure our how to modify this code so that it creates a checkbox for each entry in the meta_key.
It is a meta box that will be used on the menu page.
The meta_key has multiple ...
0
votes
0answers
47 views
Query recent posts by author
I'm fairly new to wordpress but trying to get recent posts by a specific author. The following code displays only most recent bog posts. I am using a custom field to get the author ID.
EDIT by ...
0
votes
1answer
25 views
Where can I find the code for the menu page meta boxes?
I want to add a meta box to the menu page. More specifically I want to basically clone the pages or category meta box and have it load the items into the list from a meta key, instead of pages or ...
0
votes
0answers
23 views
Problem in custom user registration form
Some one ask this question here but answers just refer to use different plugins. My problem is same but I do some thing different. I create user custom registration page with name of register.php and ...
0
votes
1answer
237 views
Transfer taxonomy to custom field
I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
1answer
187 views
Filter by Custom Taxonomy AND Custom Field
I'd like to give my users the possibility to filter the posts by Taxonomy Terms AND Custom Field values.
Like so:
[tax]Country:[terms]
[tax]Company:[terms]
[field]Price:[values]
Filtering by ...
0
votes
1answer
124 views
Display custom field outside the loop
Inside of my WordPress theme directory I have a standalone PHP file called image, this currently looks like this....
<?php
define('WP_USE_THEMES', false);
...
0
votes
2answers
28 views
What is the best way to store a few fields?
I'm researching what it would take to develop a custom Wordpress plugin. The plugin is a pretty small one. We just need to persist 2 fields of integer information. It's a pretty basic progress bar ...
3
votes
1answer
80 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 ...
0
votes
0answers
31 views
Wordpress custom field being lost on wp_update_post, with a twist
I'm using wp_update_post to programmatically add a title and tags to posts from the front end. I'm running into a hair-tearing issue with custom fields in the process: one of the two custom fields ...
-2
votes
1answer
24 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' ...
-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 ...
0
votes
0answers
12 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
1answer
331 views
How to implement a Google map store locator
I have followed the following Google developer doc about creating a store locator usng PHP & MySql.
https://developers.google.com/maps/articles/phpsqlsearch_v3
I have this working but now I ...
0
votes
0answers
25 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
2answers
190 views
Sort posts by custom field numeric value using dropdown
I've read umpteen answers and questions about things that are very similar to this but I just can't get it to work for my specific situation.
I have some posts with a category of "property". In ...
-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
37 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 ...
0
votes
1answer
193 views
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 do found one disadvantages of this guide. When I click 'Remove' link from the uploaded images, it ...
1
vote
1answer
89 views
Using OR in WP_Query negates the “NOT EXISTS” compare
I'm attempting to filter posts by a custom field that either are equal to 'new' or have not been set yet. I'm able to get either of those meta_queries to work on their own but when I use them in an ...
0
votes
1answer
108 views
Undefined Variable (Displaying image via custom field)
I'm getting "an undefined variable in line 6" while trying to display an image from a custom field. It's pulling the name/link of file; but not image. Here is my code
<?php query_posts( ...
-1
votes
2answers
33 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
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 ...
2
votes
2answers
1k views
Edit Custom Database Tables in Wordpress
I have a site that uses custom database tables to manage info that is inserted by a process completely independent from Wordpress. The data from the table is used in the Wordpress site but it is not ...
0
votes
2answers
81 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
38 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 ...
0
votes
2answers
218 views
Automatically assign a custom post to a custom taxonomy based on custom field value
We have a custom post type called listings, and each listing has a custom field zipcode (which is a 5 digit number). We then have a custom taxonomy area, which can be "New York", "Los Angeles" etc.
...
0
votes
1answer
769 views
How to Create Dynamic Fields in a Meta Box?
Could someone explain me with a little example how create a button that creates a new custom field dynamically?
I'm working on a plugin and using add_meta_box, I need an input box ...
0
votes
1answer
216 views
Custom bulk action for media gallery items
I'm trying to add custom "Bulk Actions" to WP 3.5 new media gallery items.
I started from this excellent tutorial which does exactly what I need, but with regular posts; so i tried to adapt it to work ...
0
votes
1answer
41 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 ...
1
vote
1answer
32 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 ...
1
vote
3answers
2k views
How to Add Custom Fields to a Custom Post Type?
Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type.
I need a drop down ...
0
votes
0answers
15 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
30 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 ...
0
votes
2answers
187 views
Getting a “Changes you made will be lost” dialog prompt on a custom post type page
I have a simple custom post type setup with a few custom fields. All seems to be working ok until on the odd occasion I get the dialog box you normally see if you try to navigate away from a post/page ...
1
vote
1answer
36 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
50 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
1answer
48 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
35 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
510 views
Custom product fields in wp e-Commerce plugin
I want the user to be able to set a text, option values or other type of data in each product just before they add it to the cart. Just like product options.
For example: The user buys a sticker ...
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 ...
0
votes
1answer
65 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 ...
1
vote
1answer
134 views
Getting movie and serial on actor page
I'm building a cinema site, I came with a problem, let me explain:
Movies- are stored in Post's
Actors- are stored in Post Type - persoane ( taxonomy= lista)
Serials - are stored in Post Type - ...
0
votes
2answers
38 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
33 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 ...
0
votes
1answer
167 views
Image upload and path to custom field
I build a script, to post from frontend. There are many custom-fields. Most works fine, but with one thing i have problems.
First a description, then the script.
It seems like, that images won't ...


