Browsing Category

WordPress custom-field

How to separate posts in loop?

Let say I want to separete posts on how big or important they are. I want to set some kind of label on them so

Construct an array once / dropdown / select box / user profile issues

i want to make my own custom select fields in the wordpress user profile. I made a database in .tab file before and try to

Populate custom post type/custom fields from an external database

I have a custom MySQL DB(same host/different domain) with a lot of vehicle information. What we want to do is populate a custom post type

Two queries for a WP_User_Query search work perfectly apart, but not together

I’m putting together a page that pulls User data and displays it in an attractive social-media-like format. I want to use a variable passed in

Fixed custom fields depending on posttype/category

I am just switching from MODx-CMS to WordPress for some projects. In MODx you have resources, a resource can be be page, an article or

How to automatically apply woocommerce product title to all product images alt tags?

Adding alt tag information to every product photo is a lot of work. We always just copy and paste our product title into the image

Keep display metadata value on backend – Custom Metabox

I was trying to add a Custom Post type and a Custom Meta box. Which I’ve done. But I’m facing another problem which is. When

Passing args to WP_User_Query am I using meta correctly?

I am hoping someone with more expertise can help me here. I tried passing specific args but the script wouldn’t work as expected. Basically it

WP_Meta_Query causing long-running MySQL queries

I used the following WP_Meta_Query which queried posts for a specific custom fields pair. $args=array( ‘meta_key’=> ‘tnid_01’, ‘meta_value’=>$tnid, ‘post_status’=>’publish’, ‘post_type’=>’post’, ‘orderby’=>’date’, ‘order’=>’DESC’, ‘posts_per_page’ => -1,

Custom REST endpoints for a custom post type with custom fields

I am working on a wordpress project that is highly customized. I have custom post type “foo-post” and within there I have a custom field

Custom options page checkbox will not save, despite working with text

Here’s my code: add_action(‘admin_menu’, ‘test_plugin_setup_menu’); /**/ function test_plugin_setup_menu(){ /**/ add_submenu_page(‘options-general.php’,’Forhandler options side’,’Forhandler Options’, ‘manage_options’, ‘mine-første-options’, ‘test_init’); /**/ } /**/ function test_init(){ /**/ //echo “<h1>Hello World!</h1>”;

Custom Attachment Caption Fields

I am looking to create a new field group in the gallery Attachment Details section. The field group would be called Project Tiles would contain

Custom WP_Query search with custom fields?

I would like to have a custom search on a page that is not using search.php, I need this search query to search custom fields,

jQuery – Automatic event trigger does not **really** check my form

I have a piece of code that normally looks like this jQuery(“#dealer-selection-” +“click”,function(){ selectDealer(jQuery(this).val()); }); Basically what it does is select a radio button

Flexi slider galley not showing in single-product.php page

Please check my gallery here: Here gallery not working. Gallery will be looks like like this: Here is my header.php code: <!DOCTYPE HTML PUBLIC

Add Rendered Pages With Custom Fields To Search Index

I’m using ACF Pro for building pages. I have pages with Flexible Content which have Flexible Content inside and The Relationship fields. But those pages

Back to Top 134596 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising