Skip to main content

All Questions

Tagged with
0 votes
2 answers
66 views

fetch from an external api call and display results in page

I have placed my external api call inside the functions.php file in the server and I created a shortcode for the api call. I'm familiar with React and I was expecting Wordpress to be somewhat similar. ...
bart lu's user avatar
0 votes
0 answers
26 views

How to pull through page title depending on which radio button is selected on the specific page?

I'm pretty new to Wordpress, ACF and PHP. I am currently working on a project, the website has 11 different sports centres all with different sport/activities, on each centre they will have a sidebar ...
jonnyplat's user avatar
0 votes
1 answer
900 views

get_the_ID() retrieves same ID on Gutenberg's Query Loop

I'm using Gutenberg editor and I want to add a shortcode (using XYZ PHP Code) that uses the post id to retrieve certain ACF value. I'm editing the home page where the last blog posts are shown, but I ...
Alvaro's user avatar
  • 131
0 votes
2 answers
435 views

I want to show image from custom field image on my custom page template

I have created a taxonomy and in that taxonomy i have created custom field for image. Now I want to show that custom field image on my custom page template with category name. I have tried much it is ...
Abdul Rasheed's user avatar
0 votes
0 answers
38 views

How do I create a term for every value of a post meta?

I have some information stored in post meta that I'd like to convert to terms. I'd like to create a term in a custom taxonomy for every meta value with a particular key. I need to loop through ALL ...
DJZEEGLER's user avatar
  • 119
0 votes
1 answer
123 views

Conditional operator OR not working with custom fields

OR operator is not working for both conditions, only check first value if true then code executed and if first is false then not check 2nd condition and return else output. I also try with LIKE ...
Puneet's user avatar
  • 47
0 votes
1 answer
99 views

How to conditionally add Custom Post Type to Front Page

I am using the following code to show my custom post types on my front page along with the default post type: // allows the products to show up on the main page function add_custom_post_type_to_query( ...
timbram's user avatar
  • 53
1 vote
0 answers
419 views

Compare ACF date field (if exists) and post date and order DESC

I have an ACF date field (same format as post date) and in my Query I want it to be compared to the publish date of the post: If erstelldatum is not empty use erstelldatum for order If erstelldatum ...
Omitheus's user avatar
0 votes
1 answer
218 views

Custom Fields - How to create a list from multi-line entries of a single value

If I have the following name/value pair for a custom field.... ...is there a PHP loop process I can apply that will allow me to display them on the front-end as individual values because there is a ...
klewis's user avatar
  • 867
0 votes
0 answers
150 views

How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)

I have an ACF text field for a CPT that is holding a date in DD/MM/YYYY format (it's a text field and not a datepicker field as the data was imported from a CSV file). My Wordpress loop then sorts by ...
CuCo's user avatar
  • 3
0 votes
2 answers
95 views

hide specific div on single.php [closed]

I've been working on WP since a week so far i've seen bunch of tutorials and videos about wp but i feel stuck and since i'm a wp noob i cant find or think any solution for a simple problem. i have ...
wp_noob's user avatar
  • 11
1 vote
0 answers
57 views

What is the recommended / best way to do this: Event calendar post/type in a block-based theme?

my question is this: assume I have a php-themed WordPress site with an event calendar page template that's using post type "event", which in turn has a lot of custom fields that hold the ...
yms's user avatar
  • 35
0 votes
1 answer
21 views

Having Issue on Ordering CPT by Custom Field In Custom WP Query

Having a Custom Post Type loop like this, I am able to return the result on page BUT I am not able to set Order By of display using my own Custom Field. As you can see here $topic_number = ...
Behseini's user avatar
  • 525
0 votes
1 answer
1k views

display ACF repater field in archive page

I created ACF repeater field for custom taxonomy terms. Repeater consist of two field "Question" and "Answer" . By this way I want to create FAQ section for each taxonomy term. ...
Gidromasservis QSC's user avatar
0 votes
1 answer
549 views

Show ACF field with link to ultimate member profile/Wordpress user profile below the post (single post layout)

I'm using Advanced Custom Fields and I'm trying to show a custom field below the single post. I managed to get the code to render below the post, but when I set the field movie_actors and save, the ...
023023's user avatar
  • 135

15 30 50 per page
1
2 3 4 5
10