Custom Fields are fields that can holds arbitrary extra information known as meta-data.
1
vote
0answers
15 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
0
votes
1answer
164 views
Copy/clone/associate Custom field to Custom Taxonomy
I'm looking for a solution to "clone or copy or associate" custom fields data to custom taxonomies.
example:
Custom field "location"
should copy data of that posts custom field to Custom Taxonomy ...
-3
votes
0answers
25 views
JSON API custom fields not showing full content
I have custom edited JSON API plugin and it looks like that
http://domain.com/api/posts/getByCatId/?dev=1&cat_id=7
and I get only 5 items but I have much more in database.
I try
Open file ...
0
votes
0answers
13 views
Show custom image size when all I have is the image URL
I'm using the Types plugin for a client's project and they want to output some gallery images as thumbnails which link to the larger versions.
The problem is the full size versions are MASSIVE (I ...
1
vote
0answers
23 views
Copying Custom Meta Values from existing post to a duplicate post
I'm trying to revise an existing WP plugin BU Versions to accept different custom meta field values from items I've set-up using the Advanced Custom Fields (ACF) plugin.
BU Versions will copy over ...
0
votes
0answers
19 views
How to display all values of a multicheck array if they are checked?
I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress.
Normaly when i register a customfield,
i display them by using:
<?php if ( ...
0
votes
1answer
18 views
Group pages by custom field values
I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2.
My question:
Will it be possible to build a summary page template say for Brand, ...
-1
votes
0answers
24 views
Content management where content is divided into many pieces on the same page [closed]
I hope this question is not too inappropriate here.
My pages use custom templates. In each of them, the content is divided into several blocks each with its own style. For example : an array of data ...
2
votes
1answer
36 views
Frontend posting - everything saves other than checkboxes?
I have a form on the frontend of Wordpress which is saving all fields except a checkbox array. It displays and saves the correct values if I tick the boxes in the backend post editor, and the ticks ...
5
votes
3answers
591 views
Display custom post type and custom fields within a Bootstrap Carousel
I am using the "Types" wordpress plugin for the first time. I created a custom post type, as well as some custom fields.
How do I dynamically call all the custom posts into a Bootstrap carousel, ...
0
votes
1answer
41 views
Filtering a WP_Query meta_query by numeric values isn't working
That was a very dense title.
I have a custom post type "event" which has a Date/Time picker field "event_date" thanks to the Advanced Custom Fields plugin. This Date/Time picker saves a UNIX ...
0
votes
1answer
30 views
Displaying a custom field containing a list creates unwanted markup
I display my custom field like this :
<p><?php echo get_post_meta($post->ID, $my_field, true); ?></p>
As long as the field contains plain text, the markup is normal :
...
0
votes
0answers
19 views
Post thumbnail size for custom field only
I'm using advanced custom fields (the plugin), and I have some image upload fields. The images that I'm uploading via this custom field need to have a specific size, but I don't want to create images ...
0
votes
1answer
158 views
Order custom posts by taxonomy, then by meta_key
I've created a custom post type called Player Manager, where I have all the players of a football team. The CPT has four different categories - goalkeepers, defenders, midfielders and strikers. I also ...
0
votes
1answer
65 views
Upload image to wordpress
I'm a beginner writing website and use WordPress and I'm writing plugin that involves profile page (not avatar because this field that I implemented, user can upload image, anything, i.e. Picture of ...
-1
votes
0answers
27 views
Tournament with website visitors voting to choose matchup winners
I am building a website that will have bracket style tournaments matching up movie characters. In the tournament, matchup winners will be determined by votes from website visitors.
Visitors to the ...
2
votes
1answer
40 views
WP_query : meta_key with custom rule for specific value
I'm a bit stuck with a WP_Query code. Here it is :
$args = array(
'post_type' => 'post',
'meta_query'=> array(
'key' => 'karma',
'compare' => '>=',
...
0
votes
1answer
333 views
WP_Query display next custom post from today's date
I have a calendar plugin that uses custom posts types to create events. There are several custom fields that allow me to create various and seemingly unlimited post queries. The one I'm currently ...
-1
votes
3answers
133 views
Currency (price) formating on custom fields
I need to format a custom field in admin area (post edit) as a currency, eq: 12.000,00 , with user typing only the numbers, the , and . automatic. Ive searched arround, with no sucess.. Anyone? thank
...
0
votes
2answers
165 views
Creating custom field with drop down on new post page
I Am trying to create a default custom field drop down with pre populated values from the DB to be shown while creating a new Post or editing a existing post.
I am aware about how to add a single ...
1
vote
1answer
36 views
Separate table or usermeta
We are creating custom fields for users like annual income, gender, city, country, etc. There are about 10 odd new fields. We will be importing approx. 30,000 records for each user in a month through ...
4
votes
1answer
73 views
Programatically add options to “add new” custom field dropdown
How can I add pre-defined options to the "add new" custom field dropdown?
Here's two examples of automatically adding and showing new custom fields:
WordPress: Adding Default Custom Fields on New ...
0
votes
1answer
55 views
Change Post Meta via AJAX from the posts list table
I've been looking around for this for a while but haven't found anything as of yet.
I have a custom post type - "books" and this post type has a custom meta field of "availability".
I would like to ...
0
votes
1answer
106 views
Create widget that filters posts on current page based on entered value
Can somebody point me in the right direction wouldnt have a clue how to start programming this.
I want to filter post based on price (custom value) thru a widget. So lets say you click on a post ...
1
vote
1answer
207 views
Using Custom Fields in Custom Post Type URL
I'm developing a car site that has showrooms. Each showroom needs it's own custom URL based on it's location. The location (City and County/State) is already inserted as two custom fields. So for ...
-1
votes
0answers
26 views
html to image featured image
hi how can i use the script below to be able to convert html to image in wordpress so that when i click a button it generates and set the image a featured image, i wanted to create a metabox in post ...
0
votes
2answers
228 views
Include custom fields into the content of a regular page
Here's my setup:
Parent "Gallery" page: _regular page, not custom type or anything _
Several "Project" child pages (could be as few as 1, unlimited
number): also normal pages
Child pages will ...
6
votes
7answers
340 views
Individual Widgets per Page
In my (page-only, no posts) Wordpress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses 'blobs' as widgets. At least they'll have a fixed html content, like ...
1
vote
1answer
43 views
Change order of posts
I made a post recently that did not explained myself right!
Come again, but with better explanations.
I need the "Select Option" change the order of query_posts.
My current code is:
<select>
...
0
votes
1answer
157 views
Query posts by Custom Meta (checkbox) & Genesis Grid Loop
I've been trying tons of things for the last 2 days. I'm at a standstill now. I read a ton of posts here but nothing has worked yet.
I have a CPT 'artists'. This CPT contains a custom field ...
1
vote
1answer
51 views
Use Custom Post Type to as Custom Field
I am newbie of wordpress as well php programming.
I want to create a custom post type for store that having all store names and it is working. Now I want to fetch the all stores in select box in ...
0
votes
1answer
37 views
Saving zero in meta box
So I have created a meta box for a review rating. Sometimes the value of the rating (out of 5) is zero.
When you enter a 0 into the input and save the data, it doesn't process because of the fact 0 ...
0
votes
3answers
312 views
custom field with total count of Facebook likes, comments and shares
i want to make custom filed that contains facebook like count for the post url
to get the likes i used this code
function fb_count(){
$link = get_permalink($post->ID);
$content = ...
1
vote
1answer
164 views
Copy SEO Meta Desc “Custom Field” to Excerpt field?
I'd really like to take all of my old posts, and automatically use the meta descriptions we have written – currently done for each post using All In One SEO Pack – and copy them to also be our post ...
3
votes
1answer
365 views
Change behavior of “Insert into Post” based on attachment metadata
For a custom plugin I'm working on, I have added a checkbox element to the attachments editor in a manner like the answer provided here:
How to add a checkbox element to attachments editor with ...
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
53 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
45 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
22 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
21 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
232 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
185 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
115 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
72 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
28 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
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' ...
-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
329 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 ...


