Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
1 vote
0 answers
76 views

How to conditionally change template based on ACF field in WordPress 6.5 with FSE theme?

I'm currently working with WordPress 6.5 and using a Full Site Editor (FSE) theme. I need to dynamically change the template of a page based on the value of an Advanced Custom Fields (ACF) custom ...
Caribou's user avatar
  • 11
0 votes
1 answer
17 views

Custom fields empty after refreshing page

I have added some custom fields to the Gutenberg editor, the purpose is getting these custom fields loaded in the custom-post-type. Thats is all working, I was able to get the custom-fields in the ...
Brango's user avatar
  • 1
0 votes
0 answers
24 views

Problem with custom user fields default value and retrieval

I created 2 custom fields for users on my site, a Company name and a checkbox for whether a user has download access or not. Here is the snippet for the functionality: add_action( 'edit_user_profile', ...
Miroslav Kazimirovic's user avatar
0 votes
2 answers
91 views

how to compare date meta value in jet smart filter Date query?

trying to compare meta value between today and next 7 days, tried this in value field %today%, %str_to_time|+ 1 week% but its not working.
vikram's user avatar
  • 1
0 votes
0 answers
32 views

Cannot Access ACF Field Values via my Plugin

Objective I am working on a WordPress site built using Timber/Twig. I have a plugin (built using standard PHP and saved in the standard plugins folder) that is supposed to grab ACF values from a ...
Isaac Hillaker's user avatar
1 vote
0 answers
35 views

Only allow users (that are not admins) to edit a specific post

I am using a ACF field on the user profile.php to assign a post id to a user. The users need to be able to receive the capability to edit this post, but only this post. They should not be allowed to ...
Klein's user avatar
  • 11
1 vote
2 answers
22 views

Is there a way to decide from init whether we are on a certain backend page?

On frontend pages I can do something like $currentPostId = url_to_postid($_SERVER['REQUEST_URI']); if ($currentPostId && $currentPostId === $postId) // ... So when I add a ...
inf3rno's user avatar
  • 135
0 votes
0 answers
27 views

Why using archive pages at all?

I searched through some questions and it was a surprise this never was asked before. I have a lot of customers who maintain there Wordpress sites that i created for them. I often get the question, why ...
LovinQuaQua's user avatar
0 votes
0 answers
15 views

Issue using form in Google app in mobile

I have a contact form on my website, and I'm utilizing Contact Form 7 (CF7) plugin for it. However, when I fill out the form using the Google app on my mobile device, the page seems to reload somehow. ...
Baim Quraisy's user avatar
1 vote
0 answers
137 views

Block Theme: How to use a different template on front page vs paginated pages?

I'm using block themes. I'd like the front page / home / index to show some extra blocks plus the list of blog posts. However, I want the paginated pages (e.g. /page/2) to not have these extra blocks ...
TLR's user avatar
  • 11
0 votes
0 answers
15 views

I have design Tab in a Bootstrap 5 in row. And repeat row in ACF. only 1st row tab data is show. other row data off tabcontent appearing display:none

" alt="Therapists Image" class="img-fluid" width="450" height="675" loading="lazy"> <div class="...
Santosh Kumar Patel's user avatar
0 votes
0 answers
20 views

custom post type with metabox custom fields

how to make meta custom fields in custom post type name jobs_board_cpt , I am using boilerplate ? public function jobs_board_cpt() { $labels = array( 'name' => ...
Muhammad Ashfaq's user avatar
1 vote
0 answers
19 views

Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages

I'm encountering a problem with a WordPress plugin I'm developing for DirectoryPress listing pages. The plugin aims to replace the default permalink with a new link specified by users in a custom ...
Xplosio's user avatar
  • 11
0 votes
0 answers
23 views

Populate Elementor Form based on first selection

for better understanding, check this elementor tutorial https://youtu.be/wYv0tMFDFG0?si=cg2nQE6a5zl0FdHp&t=610 starting with 10:10 min, is what I need. Instead of Options 1, 2, 3, etc, I have ...
Vali Dragomir's user avatar
0 votes
0 answers
22 views

image doesn't display when option on product page chosen

I am using the the theme storefront, on my product page, when option chosen the image for option does not display, it use to. I have deactivated all plugins to see if it would correct issue, it didn't....
AndreaLL's user avatar
0 votes
0 answers
19 views

Remove element from admin page editing part

I would like to remove few element in the admin page editing part. Here a screen to the elements I want to remove. Thank you !
Brommando's user avatar
0 votes
1 answer
32 views

Best Practice for storing aggregate data by date or other criteria?

I'm creating summary descriptions by year. To do this I do update_post_meta on save to set values for word count, image count, external link count. So for a year archive page I iterate over each post ...
artlung's user avatar
  • 3,097
0 votes
1 answer
60 views

Search page doesn't recognise post_type=page

I've created some custom filter buttons for my search page, listing various custom post_types. Included in the list is the basic 'page' post_type. However, when I use this filter (updating the url to /...
evilscary's user avatar
  • 111
1 vote
2 answers
34 views

add_post_meta unique value for all custom posts

I have a custom post type "Propietario" with several custom fields, and 3 of them: "dni", "email" and "phone" I need unique for all Propietario Post types. This ...
JJMontalban's user avatar
0 votes
0 answers
23 views

wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y

i am about to create a wordpress-plugin that offers the output of the following data ... the data of a a Neaby-search: can we create a quewry that shows up all the schools that are in the near - in ...
zero's user avatar
  • 170
0 votes
0 answers
25 views

How to create advanced custom fields for backend content

Is there a straightforward way to create custom fields for module-based content on WordPress? Example: User Creates page Creates Page content sections through forms Row 1: Column 1 - Content A ...
Jeremy Thomas's user avatar
0 votes
0 answers
20 views

Add File field in WooCommerce Box office plugin

I'm using WooCommerce Box Office plugin and I want to customize this plugin according to my requirements for example I want to add another field option called 'file' so user can upload files as well ...
M Sufyan Shaikh's user avatar
0 votes
0 answers
50 views

Woocommerce send metadata to stripe

I am using woocommerce checkout and woocommerce stripe payment plugin, I want to send metadata to stripe from woocommerce order the [billing_vat_number] Can anyone tell me how its done, it is much ...
David's user avatar
  • 1
0 votes
1 answer
33 views

Custom Field in Page Title

I need to show a custom Field in a title (CPT) I have this code function wpse_224340_document_title($title){ global $post; // make sure the post object is available to us if(is_singular('mec-...
Laurapnunez's user avatar
0 votes
2 answers
111 views

Override categories with Pages (block theme)

It seems to be a common question as to how to override an auto-generated category page with a manually-created Page when both exist at the same location for example, /xxxx/ and /yyyy/ and /zzzz/ are ...
Displayname71's user avatar
0 votes
2 answers
78 views

Subpage for Custom Post Type

I have a custom post type "location". add_action("init", "register_custom_post_types"); function register_custom_post_types() { register_post_type("location&...
Luca's user avatar
  • 3
0 votes
0 answers
194 views

Rewrite URL custom search query

I have this url: mydomain.com/?s="SEARCH TERM"&categoria="WORDPRESS CATEGORY OF POSTS"&province="CUSTOM POST FIELD"&poblacion="CUSTOM POST FIELD" ...
Maseres's user avatar
0 votes
2 answers
603 views

Why does updating the front page give a 403, but no other page?

I am not very experienced with WordPress, so please bear with me if I do not use the right words or concepts. I've been asked to find out why it isn't possible to update a page in a (quite old) ...
Peter Jaric's user avatar
0 votes
2 answers
1k views

How to display WordPress Twenty Twenty-Four's built-in custom field in a post (or page)?

WordPress's Twenty Twenty-Four theme makes it possible to add custom fields directly in the editor, but I simply cannot figure out how to display such fields within a post or page (without a plugin). ...
YCode's user avatar
  • 125
0 votes
1 answer
79 views

How to create alias / synonym links to existing posts

I have a directory type website, where each post is a word definition. I want to set up synonyms of these words for audiences from different geographies. For example, let’s say I have a post for “...
Rhecil Codes's user avatar
1 vote
1 answer
77 views

Parameter for pagination posts_pagination

I created a pagination with the_posts_pagination() function Right now it looks like this and it works fine: Previous 1 2 3 4 Next When I am on the 1st page, the "prev" button disappears or &...
user avatar
1 vote
1 answer
185 views

Wordpress post-template null warnings

I am getting these PHP8.0 Warnings from my WordPress site. The warnings are pointing to core code, not anything custom. When I turn debugging on there are no error messages on the site. I also checked ...
Dawn's user avatar
  • 43
0 votes
0 answers
30 views

How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin

I have been trying to obtain posts by filtering by two custom fields in a wp query, the problem is that I do not get the expected result, which is that I filter by country and by a value that I am ...
Peter Alexander's user avatar
0 votes
1 answer
220 views

get_field for a widget value returns null ACF

I am using `ACF` plugin to add a custom field to my widgets. After creating the field with the name `mobile_enable`, tried to get the value with the method explained in the ACF docs which is the ...
MeMo's user avatar
  • 71
-1 votes
1 answer
79 views

ACF auto complete all value from 1 cpt to another cpt

I want to fill all values in CPT 2 automatically if field names match between CPT 2 and CPT 1. In cases where, for instance, CPT 2 field 1 doesn't match CPT 1 field 1, manual input for all fields in ...
Tuagapat Manam's user avatar
0 votes
0 answers
29 views

Need some suggestions with Relationship fields and CPT/ACF

I am tasked with creating a Student/Teacher Portal where among other things, I need a way to build a way for Admins to assign Teacher with Students based upon Subject and Age group (Age for students). ...
RitZz's user avatar
  • 1
0 votes
1 answer
28 views

Custom post type needs to capability to create and edit by some specific user role

I made a custom post type called "Jobs" by ACF. I am using "Members" plugin to give users role. I want some users will get the capability to create post and edit post. others ...
arif hossain's user avatar
0 votes
2 answers
116 views

How to get products with the same custom attribute like ean code

I Try to get all products with the same ean code, but the query doesn't work and also doesn't give any errors. What am I missing? Here is the code I use. if (is_product()) { global $product; $...
apero's user avatar
  • 101
1 vote
1 answer
190 views

Get featured image thumbnail and inserting into custom field on wordpress posts

I'm not a developer so trying to put this together has not been successful. Hope someone can assist! My goal - create a custom field on a wordpress post when a post is published or updated which ...
StevieK's user avatar
  • 11
1 vote
0 answers
23 views

edit index custom post type page with elementor or other

i have a custom post type in wordpress like book. i can edit single pages template with add single-book.php file and edit archive pages template with archive-book.php file. i know main page of this ...
milad taghizade's user avatar
0 votes
0 answers
376 views

How to edit category/archive page?

Basically I want to customize this page to make it look like this page, however I can only edit text over the featured image with my theme. Is there a way to edit the category/archive page (sorry for ...
Cullen's user avatar
  • 1
0 votes
0 answers
66 views

Skip un-set meta fields ("Invalid field: fieldname") when using `wp post list` and displaying custom fields

We have custom fields called country and coordinator. This works: $ wp post list \ --post__in=81153 \ --post_type=boardmember \ --fields=ID,post_title,post_name,post_date,post_status,country,...
3wordchant's user avatar
0 votes
0 answers
246 views

Why do pages look good when logged in to Admin but not when logged out

I recently decided to start using DIVI to begin rebuilding my site one page at a time. When I am logged in the pages (home and about) look great. When I am logged out they are terrible, some info not ...
Isaac Belden's user avatar
0 votes
1 answer
38 views

Hide page title on dedicated posts page

My entrypage on my website is a static page. The post page is another one called "Beiträge". How can I remove the page title "Beiträge" on the posts page?
Dirk's user avatar
  • 21
0 votes
1 answer
73 views

Can I count every article following extracted meta value?

I can show all value in certain meta key(species1 and species2) by my code below. It shows like this. $species[]contains many kinds of bird species. Crow Eagle Crane Pigeon... Now, I like to count ...
cwhiro's user avatar
  • 25
0 votes
0 answers
23 views

SQL query based on two different custom field values

I have custom post type "store" that has two different custom fields: Coutry and City. When in the single country page I list all the stores in that country. What I would like to do is to ...
chaq's user avatar
  • 1
0 votes
1 answer
183 views

Change meta information for link to page

I recently created a new page in Wordpress, using the Divi template, and then decided to send a link to that page to one of my coworkers over MS Teams. MS Teams seems to look up meta information about ...
vic's user avatar
  • 101
1 vote
1 answer
382 views

Can't expose custom field to REST API

As far as I can tell, the following code should make the video custom field of my CPT project available through REST API. Yet the custom field is still not exposed. Why not? add_action('rest_api_init',...
drake035's user avatar
  • 1,197
0 votes
1 answer
62 views

Adding the numerical values from a custom field from all posts in a category

I have a blog that is documenting an airplane build process. Posts describe the work done each day, and are organized into a category for each component. Each post has a custom field for hours logged ...
John's user avatar
  • 103
0 votes
1 answer
52 views

All content of one page shifted to the left

I am new to Wordpress and am trying to start a personal blog just for fun. I selected a theme but realized after a few weeks I didn’t really like it. I switched themes and everything has been going ...
Mariah's user avatar
  • 1