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

learn more… | top users | synonyms (2)

1
vote
1answer
3k views

Filter by custom field (meta_key) using JSON API

Hi I'm using the great JSON API for Wordpress and would like to filter my custom post types by a specific custom field (using the meta_key and meta_value params). The query in my URL looks like this ...
0
votes
1answer
37 views

Attaching global meta to custom fields

I post music videos on my site and I add the artist name as a custom field to each post. I want to associate certain meta with that artist name so I dont have to enter it everytime like the artists ...
0
votes
2answers
231 views

Efficiently sort only certain categories by custom field

I have a site with about 1,000 posts spread out over 70 or 80 categories. Some of these categories require the posts be sorted by a custom field, others not. I've got a working solution by having ...
3
votes
1answer
881 views

With WordPress Importer, why can't I import post meta containing a multi-dimensional array, in which value(s) of that array contain line breaks?

The Question With WordPress Importer, why can't I import post meta containing a multi-dimensional array, in which value(s) of that array contain line breaks? Is there a workaround that I can do to ...
-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 ...
5
votes
4answers
5k views

Prevent post from being published if custom fields not filled

I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen). I would like to make sure that an Event cannot get published (or ...
0
votes
1answer
199 views

Selectively hiding or allowing thumbnails of featured images on front page

I need a way to selectively hide or allow thumbnails of featured images to appear on the front page of my site. Ideally, it would be a custom field on each post, where I could choose - for example - 1 ...
0
votes
1answer
299 views

How to query posts that have certain post meta keys, and sort by meta key and/or value

I'm using this structure to make album lists. I'm using a key so I correspond lists to albums but I don't know how to reverse the output so the items start at the top with lowest key value. Any ideas? ...
2
votes
3answers
1k views

Search everything (posts, pages, tags, cpt, meta)

I would like to know how to use the built in wordpress search to return results from all content on my site. Specifically, I want to search; posts pages tags custom post type (portfolio) custom ...
1
vote
2answers
736 views

Adding a Nav menu to post admin

i want insert a dropdown menu with list of menus, that i've created in nav-menu.php, to post-admin... For example, when i'm creating a post, i want insert a menu "Paul" in a post (only a post that i ...
1
vote
1answer
439 views

How to query posts with certain custom meta data, and output Post data

I've been working on modifying the Thesography plugin to include the Google Maps API. So far I've had success doing so. I'm looking to take this one step further and have 1 large Google Map that ...
0
votes
2answers
809 views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
2
votes
1answer
942 views

wordpress plugin error handling

I am looking for a way to handle errors for a custom post type with its own custom fields. This is all part of a plugin I'm writing, however, after extensive research the only way I found is through ...
1
vote
1answer
427 views

Auto-remove custom field with no value on publish

I got some plugins that auto-generates custom fields. Does anyone know how to automatically remove empty custom fields from post when I press "publish"? A check I can put in my functions.php that ...
0
votes
1answer
158 views

Insert shortcode before and after a list automatically

I'm setting up a custom page template and I'm building a widget on it that lists albums with track lists. I use a plugin that allows me to expand text which is what I use to show tracks of the albums ...
0
votes
1answer
896 views

Importing Wordpress Posts With Custom Meta Data As CSV Files Through PHPMyAdmin

I have been importing data records as posts with custom meta data directly into Wordpress via the CSV Importer plugin. It works okay, however, there are some issues with it. Issues: 1) It takes ...
0
votes
1answer
141 views

Writing a custom Glossary plugin

I'm just about to start work on a Glossary plugin for my fishkeeping website. My fish guru has suggested that he would like to be able to include images and easily link to other glossary entries. ...
1
vote
1answer
151 views

How do I Add images uploaded in the post to a default custom field

I'm trying to add the URL of the post images in to a default custom field. Here is the code I got so far... Here is how I add the default custom field: add_action('wp_insert_post', ...
0
votes
1answer
158 views

Using a custom field inside a shortocde

Im trying to use a custom field inside a shortocde for a nextgen gallery slider on a page. The goal is to change the gallery id by entering in the corresponding id on page creation with a custom ...
0
votes
2answers
1k views

Add image URL automatically to custom field?

Does anyone know how I automatically add the URL of the uploaded image to a custom field? In other words, When I upload a image I want the url to the image to get a custom field variable ...
2
votes
1answer
426 views

Order by value in serialized custom field

Quite a pesky problem here. I've taken over a site that contains multiple information, serialised, within a custom field. For example: if ($new_query->have_posts()) : while ...
0
votes
2answers
118 views

Getting a custom post's custom field based on another custom post's custom field select

So I'm at my wit's end here. I've done this before plenty of times, but I think I have stared at this so much I am missing something. I basically have a custom post called locations. That custom ...
0
votes
2answers
273 views

Parent Child Custom Fields with Advanced Custom Fields

i have a navigation menu for Year, Make, Model of cars. Is it possible to Parent, Child custom fields so that if I have selected 2011, Honda, CRV I don't want other Models from non hondas being ...
0
votes
1answer
100 views

grab or load text on demand

What i want to do I want some content (could be stored any where in a post or custom field) to load only when the user clicks for it to load. This content could be any thing (text,images,html etc) ...
3
votes
1answer
263 views

Adding Custom Fields for Img in Posts

I'm wondering how I'd be able to set a custom field within my Wordpress posts. I want to have a field available to add an image via the Post dashboard - that has a max width & max height set, I ...
3
votes
2answers
2k views

Problem with serialized arrays in custom meta

I've recently moved my fishkeeping "species profiles" over from a custom DB to a customised WordPress custom post type. I did this by creating a PHP file which accessed the former database, extracted ...
0
votes
1answer
64 views

Calling Custom Field within Function wrapped with Divs.

Hi all I've created a function that basically allows the user to input the embed code for youtube into a custom field called youtube and this will then be styled on a wordpress post. Now I can get it ...
0
votes
1answer
650 views

Convert attachment ID into url?

I'm using the plugin advanced custom fields to create custom fields to create a relationship between two pages. The code below is looking at the relationship field and grabbing the page title and ...
0
votes
2answers
355 views

How can i loop through custom post type according to custom meta field?

I have a winery website with the custom post type "wine", each wine has various custom meta fields like "vintage", "pH", "Varietal-Composition" etc... Now, i would like to list all wines where ...
0
votes
1answer
293 views

Custom Fields Not in Search Results

I noticed that the content of my custom fields is not in my search results. Is there a good remedy for this? I could just hardcode my content into page templates but I would like the content to be ...
0
votes
1answer
283 views

How to check if custom field exists in this widget query

How can I include this (or something similar) <?php if ( get_post_meta($post->ID, 'url', true) ) { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ...
1
vote
1answer
737 views

Custom field values to taxonomy terms

I have a "author" custom field with the names of author. I want to add some new features to the site so I decided that custom taxonomies will be the best solution. So what I need to do is to get the ...
0
votes
2answers
2k views

display loop only if a post meta data exist

I'm looking to display the following loop, only if a custom field data exists, if not, I don't want to display anything. <?php while (have_posts()) : the_post(); $data = get_post_meta( ...
4
votes
4answers
6k views

Sorting a query by custom field date

EDIT: Reworded the question for more clarity I'm trying to sort by custom meta box data, which I am converting to a date using the strtotime function, but I'm having some difficulty. My chief ...
0
votes
1answer
1k views

Using 'strtotime' function to convert a custom-meta-box to a date-stamp

I am building a "podcast" post type in a wordpress build using custom-post-types, meta-boxes & taxonomies. There may be a simpler way to do this.. I'm still learning and this is my first go at ...
-1
votes
1answer
143 views

Shortcode not picking up custom field

I created a custom field that allows me to set the cropping style of timthumb, but I am also using short code to populate a page with blog posts, but the shortcode isn't picking up the customfield, so ...
0
votes
1answer
352 views

How can I add user profile fields to my mailpress mailout

I want to be able to send emails to my subscribers but reference their name in the email and possibly some other profile fields. Can I do this using mailpress? So for example. I want each email ...
0
votes
1answer
304 views

query usermeta from custom field

I am using a plugin to create custom fields in the user registration. I have created a check box field called g300 which is the name of the meta_key stored in wp_usermeta. It looks like the value ...
0
votes
1answer
166 views

How to order posts by number of Vimeo Likes

I have number of posts that contain embeded video from Vimeo, I can get vimeo likes and display them inside the post using vimeo API but how can I order those posts by number of Vimeo likes?
1
vote
2answers
5k views

User Profile / Add Custom Fields

Hello: I am trying to add 7 custom fields to the standard Wordpress wp-admin/profile.php page. There are a few site which suggest a simple bit of code to do this, for example: ...
0
votes
1answer
858 views

Difference between 'LIKE' and 'IN' in meta queries

You can use a variety of different comparison operators in meta queries, among which are 'LIKE', 'NOT LIKE', 'IN', and 'NOT IN'. What is the difference in use between LIKE and IN? Here's the ...
0
votes
2answers
2k views

Advanced Custom Fields Plugin - Unable to get URL from post_object

I'm not sure what I'm doing wrong here. I have a field called "grid_thumbnail" and a "related_projects" post_object. I am able to display the title of the related post. I just don't know how to get ...
0
votes
3answers
774 views

Displaying a video on the homepage via a custom field inside a php widget

I'm trying to get a video to display inside a widget which is called from a custom field inside a post. The code I am using is here: <?php ...
0
votes
1answer
2k views

Trying to use Advanced Custom Fields with custom image sizes

I have a product section on my wp-site. I am trying to display the attached thumbnail image in specific sizes that are automatically cropped to the right size. I have used Advanced Custom Fields to ...
0
votes
1answer
510 views

Inserting custom fields into single.php

I am trying to get a custom field to show straight after the main body of text in single.php BUT before the Outbrain and Facebook Connect boxes. If I put the line to show the address above <?php ...
0
votes
1answer
676 views

wordpress - add a custom admin section with fields for name, address, city,state, and photo upload

Am attempting to create a custom post type and have it contain very specific info. Name, address, city, state, zip and photo - as a post. Need to have the admin section show form fields named as ...
1
vote
2answers
1k views

How to customize default wordpress editor?

Good to hear that Sonny (wordpress3.3) has the new editor API wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease. But I needed to customize ...
1
vote
0answers
350 views

Dynamically create check boxes for given post titles in WPAlchemy

I'm using WPAlchemy to create meta boxes. What I want to do is to dynamically create a group of check boxes with post titles. In other words, I want to replace a, b and c with the query of post ...
17
votes
4answers
31k views

Advanced search form with filters for custom taxonomies and custom fields

I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties ...
2
votes
0answers
90 views

Including Database Generated Pages in Site Search [closed]

Our library uses a separate little php/mysql app and wordpress template pages to display lists of resources for users. The resources are not included in site search, of course, since the pages are ...