Skip to main content

All Questions

0 votes
2 answers
49 views

How to use meta_query to retrieve posts from multiple custom post type

I am having two custom post type "meet_our_community" and "news" I have added a checkbox field named 'add_to_meet_our_community' from the acf to 'news' post type. Now I when tried ...
Amal's user avatar
  • 1
1 vote
0 answers
54 views

WP_query with ajax filter not working with input fields

I'm having trouble with my query when using ajax to filter the posts. I have a page where the posts of post type 'activiteiten' are loaded when the start_date custom field has today's date or a date ...
Thessa Verbruggen's user avatar
0 votes
0 answers
23 views

WP_Query filtering in ACF field containing dates

I'm trying to use WP_Query to filter Advanced Custom Fields posts that can contain this value in the "dates" field (text type), for example "20230101-20230102;20230201-20230202;20230301-...
jakr's user avatar
  • 1
0 votes
1 answer
63 views

Wordpress custom post type -> query and sort by custom field with multiple values, then published date

I have a custom post type with 2 custom fields that I am trying to sort by: The first custom field is "featured post" (yes or no values). The second custom field is "CPT images ...
Mitch S's user avatar
  • 27
0 votes
0 answers
28 views

Include custom post type that matches taxonomy field in another custom post type

I have two custom post types, one is “maker” and the other “product”. (used ACF plugin) I have a taxonomy field for Business Name, this field is called “choose_business” in the product custom post ...
Nik Nak Sim's user avatar
0 votes
1 answer
33 views

Wordpress duplicating posts from single loop

I've created a custom post type with ACF custom fields included. The CPT is being placed inside of a bootstrap slider. Everything seems to be working, except, the posts being rendered on the page are ...
Mitch S's user avatar
  • 27
0 votes
0 answers
49 views

Use Custom Field to Display Post Loop

In my custom template I have created a menu which is a row of 10 horizontal tabs. Each tab shows a date which is defined using an ACF datepicker field in the post. I have also created a custom post ...
SavPhill's user avatar
  • 118
0 votes
1 answer
45 views

Custom fields disappearing when a custom post type is assigned

I have a custom taxonomy page. This custom taxonomy has a few custom fields to populate it's template. A user is able to assign custom post types and media to this custom taxonomy and then those posts ...
solariati's user avatar
0 votes
0 answers
229 views

Sort posts by category and date using php and custom query

I am using Elementor Pro and Advanced Queries and also ACF for custom date. I have 2 types of posts that are events - event 1 and event 2. I have an event calendar on the first page showcasing the ...
Tryandcry's user avatar
0 votes
0 answers
43 views

Add css class ID to largest and smallest number a custom field in wp_query

I have a wp_query for get a ACF number field. I want to add a css class ID to the largest and smallest number in the loop. <ul> <?php $editor = new WP_Query( array( '...
och's user avatar
  • 39
0 votes
0 answers
177 views

Use value from meta key array for use in WP_Query

I have a CPT named 'Physicians', and have assigned an ACF field named locations to that post type — locations is an ACF post object field. I also have a 'Locations' CPT and intend on displaying the ...
Graeme Bryson's user avatar
0 votes
1 answer
308 views

Best performance for use Custom Field in WP

I started building a custom theme and I might need to have around 10 to 20 custom fields for posts and I need to 30 custom fields for theme options and image ads banner, and thinking if this will ...
och's user avatar
  • 39
0 votes
1 answer
176 views

WP_query shortcode inside acf Repeater breaks the repeater loop

I have a shortcode that lists CPTs and works great everywhere but if I use the shortcode in an ACF repeater the reapeater stops repeating right after the shortcode. I tried reseting postdata in ...
Joe Barrett's user avatar
0 votes
1 answer
236 views

Wordpress WP_Query Sort by 2 dates - custom fields

I would like to build one big query that is sorted by 2 custom fields (type date). I have a query that needs to have 2 post types ['track_trip', 'training']. Those 2 types have ACF custom fields that ...
Masmiix's user avatar
0 votes
1 answer
535 views

Display ACF object field data using Elementor Custom Query

Hello i'm working on a website using elementor pro + ACF. I have create a custom post type (CPT1) with ACF object field that take another CPT2 as values. I would like to display on my CPT1 page all ...
AKEAmazan's user avatar

15 30 50 per page
1
2 3 4 5
11