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

learn more… | top users | synonyms (2)

0
votes
0answers
2 views

How to show a gloabl message on a user profile page (in back end)?

I want to show a global message for all users in their profile page. I do not want to edit profile.php what is the hook to do this? Basically I want to add a div to show a paragraph below the ...
0
votes
1answer
14 views

Populate a select box with data stored in the database?

I know generally how to add custom fields to the user profile page. However, I need to add a custom select box to the profile page that is populated with all the schools in the state. (Our users will ...
0
votes
2answers
357 views

Bulk move (or copy) from a custom field to the post content?

I need to move (or copy) the contents of a custom field into the main post body, replacing any existing content. I need to do this for a few hundred posts...Is there a quick way of doing this? I can ...
0
votes
0answers
8 views

Adding Custom Fields/editing description css in NextGen Gallery

Hello I am currently trying to build a vehicle selling page using wordpress & The Nxt-Gen Gallery. I am currently using the shortcode below to include the description underneath the thumbnails. ...
0
votes
0answers
5 views

Woocommerce - get custom field value in cart [on hold]

I created field 'bali_latitude' with advanced custom fields, it is displayed in products. I want to get this field's value to cart to be able to retrieve it on the map in my cart. I used this code: ...
1
vote
1answer
20 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
1answer
280 views

ACF | Repeater Add-On Query

Hoping someone can assist as I am new with ACF, particulary around the repeater add-on I am creating a "Postage Pricing" table where this table will consist of 5 columns with 7 rows say. 1st Column ...
0
votes
0answers
12 views

Show custom shipping and payment field Woocommerce in backend [on hold]

I have created a custom checkout field in a WooCommerce store. I managed to get my custom field to show on the checkout page by using this code i found on the WooCommerce documentation page: // Hook ...
0
votes
0answers
10 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
2
votes
1answer
67 views
+50

Add custom field to media attachment image attribute in post editor

I have the following filter, but do not know how to add custom attributes to image field, when attaching media to post. example <img data-ext-link-title="" data-ext-link-url=""> ...
0
votes
0answers
9 views

Converting a checkbox filter for custom fields to a dropdown

I've been scratching my head trying to figure this out for awhile now and was wondering if someone could provide some help. My PHP knowledge isn't the best so I'm working with what I have and it ...
0
votes
2answers
436 views

How to exclude custom fields from search queries?

I'm building a hotel search engine and I've first created a custom content type "hotel" with Types & Views Toolset. I'm using "Search everything" plugin to query custom fields and custom taxonomy ...
0
votes
2answers
2k views

Creating a custom menu/widget area

I'm looking to create a /menu/widget area like the following site: http://www.microsoft.com/en-gb/default.aspx please see sections under downloads, security, support, about is this considered a ...
0
votes
1answer
37 views

Query post order by post and desc not working

I have a query that displays post the order of the post 1 to 10 and front-end added: <?php print intval( $post->menu_order );?>º there shows 1º, 2º, 3º ... 10º must reverse the display but ...
0
votes
0answers
26 views

Custom Post Field -> Returning only the word “array”

So I've tried this: $output .= '<span class="team-member-venue">'.get_post_meta( get_the_ID(), 'venueofcoach', true ).'</span>'; Where venueofcoach is the metaname of the custom post ...
3
votes
1answer
303 views

Change post format using custom field

I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do: Create a new standard-format post Enter a url ...
0
votes
0answers
7 views

Add another field with javascript or delete field

I need Help with code for wordpress I have a new field with price and i want to know how do i add button to add the new service in February filduri seerviciului name and price I ued this code ...
0
votes
2answers
403 views

Getting Bootstrap accordion working in Wordpress loop with custom post type (collapsing issue)

First off I am well aware that there is a plugin but I am NOT talking about the BS Short code plugin. I am talking about the actual bootstrap accordion. So here is what I am trying to accomplish, I am ...
2
votes
2answers
3k views

Multiple orderby values in WP_Query

I'm trying to come up with a query to sort by multiple orderby values. Here's what I have so far: $dept_id=2; $query=new WP_Query(array( 'post_type'=>'wpcontactus', ...
0
votes
1answer
1k views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
-1
votes
0answers
15 views

post from front end [closed]

I need authors to be able to post a posts from the front end. The tricky part is that i need custom fields in the post. For example it is a post for recipe and it has fields like : cooking time cups ...
0
votes
0answers
8 views

Selecting distinct days from a custom field within a range

I have an events custom post type that stores a date as a custom field named datestart. I need to select the distinct dates in this field, where they fall in a given month, and return those distinct ...
0
votes
2answers
943 views

Get image post ID in media upload

I am developing a plugin that adds a Custom Post Type to my theme. It's a retail directory and the post type is a retail listing. Everything is working fine. I can upload content to the DB and then ...
0
votes
0answers
19 views

Query for related posts by tags with custom field and custom post type

I've found a lot of very similar questions here, and have tried to use the (accepted) solutions without success, guessing I'm doing something very simple wrong and just can't see it so I'm hoping a ...
2
votes
1answer
412 views

Create child page within custom post type

I want to be able to have a link like this, site.com/my-custom-type-slug/single-custom-post-name/stats/, where /stats should contain the /my-custom-type-slug page content and when I add content to the ...
2
votes
1answer
443 views

Save HTML formatted data to post meta using add_post_meta()

Array ( [post] => Array ( [jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
1
vote
1answer
495 views

Auto Populate Custom Field with Complex Value That Increase by One?

Can somebody help me to sort this? I am using WP 3.5.2 and I have "Orders" post type where purchase_order custom field is located. This is the sample of purchase order record: POCOS20130051 PO - ...
2
votes
1answer
589 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
2answers
679 views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
1
vote
1answer
314 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 - ...
1
vote
1answer
17 views

Accessing loop functions (e.g the_title or the_content) from post ID

I have an array of post IDs obtained through complicated filtering code. I want to display posts from these IDs, and for each post I need access to regular post functions like the_title and such. More ...
1
vote
1answer
234 views

How to reload the role specific registration form on validation errors?

I test a solution for separate registration for different roles and it works very well. But the validation part/function (see bellow) on errors reloads/reuses the generic registration link and not the ...
0
votes
2answers
590 views

get_post_custom single array

Is there a way to return single values only when I run get_post_custom($post_id); it seems that I'm receiving double array, even when there only one value for this meta_key
0
votes
5answers
2k views

Preserving line breaks when saving and displaying custom fields data

I'm collecting data via a form plugin and save that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template via <?php ...
0
votes
1answer
27 views

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
0
votes
0answers
14 views

Register author, facebook connect, publish posts from front end

I need little help to navigate me to the right method in these six steps. Need a facebook login, which when you connect you register in the site like a author. You have a register form to register ...
0
votes
1answer
22 views

WP Query between posts custom fields [duplicate]

I've tried doing a WP_Query based on a custom field, which name is 'date' and value is something like '14/01/2015'. I want the query to give results when 'date' is between today and tomorrow. All ...
0
votes
1answer
334 views

Display content between two dates?

I want to display a meta field between two dates, the admin can set the two dates via the custom fields. How can i make such content show between the dates set? Thanks Matt
0
votes
0answers
15 views

Insert blogname automatically in custom field on ecery post

I have a WP Multisite and looking for a way to add blogname to a custom field. I have the code setup to automatically insert show_name => custom_value to every post, now I need help to add the ...
0
votes
1answer
29 views

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

This has probably been answered before but I'm stumped so I'll ask anyway. I have a custom post type called products. I then have a custom taxonomy called product-category. I've set up a custom field ...
0
votes
1answer
40 views

How can I see a list of products that I have set to outofstock through a custom field check box?

So I have tons of products being displayed through my custom post type of products made by the 'Advanced Custom Field' and 'Custom Post Type UI' plugins. I made a very simple custom field named ...
0
votes
1answer
22 views

How to add an extra, independent set of custom fields?

I'm looking for a plugin or sth to let the admin enter a list of specs (name & value) for a given type of post. The regular custom fields would work perfectly but of course, they are used by some ...
0
votes
1answer
757 views

Custom field image to Featured Image

I'm changing the theme of a blog. The problem is when I export the content from the old post and import it into the new one, I don't get the Featured Image. It's the same problem posted here: Move ...
1
vote
1answer
281 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
-1
votes
2answers
1k views

Integrating WordPress Content into a jQuery Slider

I have a pretty basic 'featured-list - image slider' implemented above my content in my custom WordPress theme. How do I integrate WordPress content into the slider so that the slide content is pulled ...
0
votes
2answers
718 views

Get single image from custom fields made with WCK custom fields creator

I used WCK Custom Fields Creator to create a repeatable custom field for uploading pairs of images (one color, one black and white) to posts. So for example, one post may have three fields, with two ...
0
votes
1answer
875 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 ...
0
votes
2answers
361 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 ...
0
votes
1answer
15 views

How do I use foreach to get content from a custom-field in multiple posts?

so I am trying to use a foreach to pull content from a custom field in multiple posts, but it just wont work. I can get it to work for a simple textarea string but I am struggling getting it to work ...
0
votes
2answers
315 views

Wordpress custom upload field error

I'm creating a custom upload field for a wordpress theme that uploads pdf files.The code is: function custom_news_meta_box($post) { $file_name = get_post_meta($post->ID, 'file_name', true); ...