All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 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
9 views

Access wordpress blog on subdirectory /blog that is running on subdomain

I have my main site https://1example.com in nextjs and wordpress blog on subdomain https://blog.1example.com. They both are hosted on different servers and diff hostings. I need my blog to be ...
kunal saxena's user avatar
0 votes
0 answers
23 views

How to replace hamburger icon with "Menu" text?

My client has asked me to replace the hamburger icon in the mobile menu with the text "Menu", because he finds it more intuitive. I'm using the WordPress theme Kumle. In the file "...
Giovanna Coppola's user avatar
0 votes
1 answer
24 views

FacetWP was unable to auto-detect the post listing : Having an issue with ACF load choices causing FacetWP error

I have a project website in which I am using Facewp to list custom posts on which I attached a custom field using ACF. I am using Extended ACF to make frontend forms to create/update those post types. ...
user55953 Asap's user avatar
1 vote
0 answers
13 views

Nonce verification problem when logging in after a logout

I'm having a problem with nonce verification. The theme I'm using has an AJAX login form that has nonce as a hidden field. It normally goes to my account page after a logout, and I can re-login from ...
FlyingFish's user avatar
0 votes
0 answers
13 views

I added a rating system on my blog post but instead of stars it shows boxes

So yeah basically I hired a developer to help with writing a source code for a rating system to my blog. When I edit with Elementor it works out fine, but when I try to edit with the Gutenberg theme ...
Farhanah Ali's user avatar
0 votes
2 answers
48 views

Retrieve only terms that are in use

I'm currently using term_exists( $term, $taxonomy ); in a conditional, but the problem is that it includes terms that are not being used (although they exist in the list of categories). Is there ...
Ray Gulick's user avatar
0 votes
0 answers
7 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
19 views

Is there a way to display date inside a page without using plugins or custom codes?

Is there a way to display date inside a page or post without using plugins or custom code inside functions.php ? for example like using short codes
zac's user avatar
  • 103
0 votes
0 answers
10 views

No WP-Content Folder in Website Files, No Ability to Disable Plugins Manually

While updating some plugins on my Wordpress site recently, I encountered a critical error, which I suspect to be the result of an update failure. I can't access WP-Admin and so used Filezilla to try ...
Adam's user avatar
  • 1
0 votes
0 answers
13 views

Wordpress blog header error

I got this problem after I updated the PHP version on the host and I can't figure out why it happened. Also, from time to time, it gets magically fixed. /** * Front to the WordPress application. This ...
ezequiel's user avatar
0 votes
3 answers
109 views

Fatal error: $post is null?

I am getting this fatal error when I try to add a new post, page or CPT. Warning: Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7502 Warning: ...
ban-geoengineering's user avatar
0 votes
0 answers
10 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
2 votes
1 answer
49 views

Why is my drop down empty

For a wordpress challenge I need to make a dropdown with all categories and I need to use apifetch So I have this : /** * Retrieves the translation of text. * * @see https://developer.wordpress.org/...
Roelof's user avatar
  • 21
0 votes
0 answers
12 views

Can The REST API be used to create/edit plugins and themes?

I'm trying to use chatgpt to create an entire website start to finish, the only problem I've run into is that I'm not sure how I would edit/add plug-ins and files/folders via the REST API. I have a ...
A.C .F's user avatar
  • 1
0 votes
0 answers
6 views

Archive dissapeared on dashboard

Archive on main menus visible and all contents but going on dashboard to edit it’s disappeared from all pages. How to restore
Keith's user avatar
  • 1
0 votes
0 answers
6 views

How to get the proper category in permalink with custom post type assigned to multiple categories

I was wondering if you could help me with the following issue. I have read a lot of cases, but couldn't trace anywhere good answer which explain, how this works. I created a custom post type: project ...
Brango's user avatar
  • 1
1 vote
1 answer
30 views

Metabox conditionals depending on post format and template in Gutenberg

In the classic editor, I used jQuery to display metaboxes depending on the current post-format or page template selected. If a user selected a different format or template, they would toggle depending ...
kath's user avatar
  • 601
1 vote
0 answers
6 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
1 answer
23 views

How to get a list of all posts and their categories?

Basically I just need to have a table like this: Post title Categories Post 1 Category 1, Category 2 Post 2 Category 2, Category 2.1 ... ... From MySQL Query to Retrieve Category from wp_posts I ...
Ooker's user avatar
  • 332
0 votes
0 answers
26 views

post_modified = post_date

Not work code, why? function update_modified_date_to_post_date( $post ) { global $wpdb; $wpdb->query("UPDATE $wpdb->posts SET post_modified = '{$post->post_date}', ...
Te43922's user avatar
0 votes
0 answers
8 views

get content of author page

is there a (reliable) way to get the content of an author page ? I need to get the list of the shortcodes on the page, actually, so i wanted to use get_shortcode_tags_in_content(), but for that i need ...
hugogogo's user avatar
  • 111
0 votes
1 answer
34 views

Where can I store data in Wordpress?

I made a pretty straightforward API something like $storage = new SettingsStorage($name, $schema); $form = new SettingsForm($storage, $action, $fields); $form->render(); I want to use the same ...
inf3rno's user avatar
  • 133
1 vote
0 answers
34 views

WP rest api and litespeed incompatibility

I have tried everything i could think of and searched on the on Internet for the last few days i'm spending ~10 hours per day trying to diagnose this. the issue: in WP Site Health i get: The REST ...
Menelaos pc's user avatar
0 votes
0 answers
4 views

Product image import

I have an Excel file with SKU, product name, and image. Then there’s another row with the same SKU and the same product name as the first row, but the image name changes, so it becomes another image ...
Wooaccount10's user avatar
1 vote
0 answers
13 views

How can I remove the post image hyperlink or edit it to target="_blank" when inside a protected folder?

I am handling hyperlinks differently and I don't need the image to also have a hyperlink of its own. But if it must-have it, at least I don't want it to replace my site. I'd prefer it opened in a ...
LOTUSMS's user avatar
  • 125
0 votes
1 answer
16 views

Filter on one post type with taxonimy and get other post type

I would like to fetch my posts of type 'news', 'videos', 'webinars', 'whitepapers', 'testimonials', and 'landing-pages' and apply a "filter" to only get the landing-pages type with the ...
WypSteur's user avatar
0 votes
1 answer
21 views

Redirecting after login except for a specific page

I needed to redirect users after login and this was not a problem using an add_filter on functions.php, done, it works as expected. But now I need to avoid this redirect when the user login from a ...
zatarra's user avatar
0 votes
1 answer
24 views

Error counting posts of category

On a WP page we are counting and displaying the amount of posts for all categories. Meaning, all sub category posts should be counted as posts for the main category. Let's say, the name of the main ...
JonSnow's user avatar
  • 115
0 votes
1 answer
17 views

Passing a variable containing a comma separated list of values in a meta-query

My objective here is to collect a series of values from a custom repeater field into a comma separated list so they can be used in a meta query. The first part of this is operational, and I think ...
mtm's user avatar
  • 43
0 votes
0 answers
10 views

Unexpected Login Redirect in Localhost WordPress Sites

I have two WordPress websites set up for learning purposes on my localhost. One is a clone of the other, and both are accessible through different loopback addresses in my /etc/hosts file. When ...
paneer_curry's user avatar
0 votes
0 answers
10 views

How to make the search form in "Add media" search custom attachment fields?

I've added custom fields to image attachments on my site, something like this: function mysite_attachment_field_to_edit( $form_fields, $post ){ $form_fields['my_ref'] = array( 'value' =>...
Phil Gyford's user avatar
0 votes
0 answers
11 views

Converting longtext to mediumtext in Wordpress wp_postmeta table

following recommendations to increase performance of my wp_postmeta table, I converted my meta_type field type to varchar 191, hoping this would reduce also the table size (which did not happen). I ...
perlfan's user avatar
0 votes
1 answer
20 views

How to print the value in same page using php template

I want to display the value entered in the form field in the same page. I have created custom php template for the page. Its showing 404 when I submit. Please help how to achieve this. <table> &...
Manikandan's user avatar
0 votes
0 answers
3 views

Show Featured products with custom taxonomy template

I have a custom taxonomy template / archive called taxonomy-brand.php and this loops fine and shows the products that have the same "brand" taxonomy, trouble is I want to have a second loop ...
user1681836's user avatar
0 votes
1 answer
9 views

Display List of Products With Missing Attribute?

I've searched and searched but have not been able to find an answer to this, so thank you in advance for your help! I am wanting to display a list (in the Admin portal, on the Products page) of all ...
Augusta J.'s user avatar
0 votes
0 answers
18 views

Display a list on the front end from wp_remote_get()

I am getting the data I need from the request but I am not getting to the bottom of how to loop over the data and create a list on the front end. I presumed it would be a foreach loop but I am just ...
Craig Watson's user avatar
0 votes
0 answers
6 views

show the entire contents of posts in an archive page as a table

I am in trouble and am asking for your advice on how to proceed. I have created a custom post and inside I have created custom fields. I need to display all the posts as a table (one below the other) ...
bastiag5's user avatar
0 votes
0 answers
9 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
2 votes
1 answer
17 views

Override base Gutenberg block default spacing in child theme's theme.json

I am trying to change the default top spacing (margin) for the Embed block used in Gutenberg. I noticed that for some reason, the default setting is .wp-block-embed { margin: 0 0 1em; } which ...
Dandry's user avatar
  • 121
0 votes
1 answer
14 views

Site Editor: Pattern previews too small?

I created a Block Theme, and when viewing my patterns in the "Site Editor", they're displayed too narrow in the preview: When activating the Twenty Twenty Four block theme, they are ...
beat's user avatar
  • 43
0 votes
1 answer
24 views

How do I filter/modify the updated content on save using javascript?

I want to use js to filter content being saved in the Gutenberg editor for pages. So far I have this, which will get the content on save, but let's say I want to append xxxxxx to the end of the ...
user18102663's user avatar
0 votes
1 answer
24 views

Issue with dynamically populating address fields with Gravity Forms

Using the gform_pre_render_ hook I receive the error when attempting to populate the default values: Fatal error : Uncaught Error: Attempt to assign property “defaultValue” on array in… This is the ...
Tommizzy's user avatar
0 votes
0 answers
8 views

Displaying Car Prices from Page Listings on Each Post Car Pages (Post Type) Using ACF

I've introduced a new post type in WordPress named "car" where I showcase the specifications of various cars. I've extensively utilized Advanced Custom Fields (ACF) with numerous fields for ...
och's user avatar
  • 39
0 votes
2 answers
26 views

Set custom post title to read only by user

I need custom post titles on the backend to be Read Only for all users except admin. This looks like it should be easy, but I'm stuck.
BarkingBird's user avatar
0 votes
1 answer
33 views

Allowing users to install a predefined bundle of plugins and themes with one action

EDIT: Assuming one already has WP Core installed; would it be possible to offer a predefined bundle of plugins and themes made by various parties, which users could download, and then install in (...
Drewdavid's user avatar
  • 199
0 votes
0 answers
14 views

WP Crowdfunding login redirect fails

I am using wp crowdfunding plugin for my website but when I create a campaign the campaigns are visible in the dashboard but are not found in the wpcf_list and the another problem is that when I login ...
Abrar's user avatar
  • 1
0 votes
1 answer
16 views

‘At a Glance’ dashboard: combining infos

I add a hook on at a glance dashboard for custom posts and it runs ok. If i add a count users and an other for each, I lost the post_type info. Also the //second is working well if the //first is over ...
made leod's user avatar
0 votes
1 answer
27 views

Including Google Map within a wordpress plugin

I am developing a plugin to include with a shortcode a form which must include Google map in order to retrieve latitude and longitude by dragging the marker. EDIT QUESTION WITH COMPLETE CODE I created ...
Elena Politi's user avatar
0 votes
1 answer
22 views

ACF - Tags not showing up in Custom Post Types

I have a tags taxonomy and then I've added it to my CPT, however it does not give me the option to add tags to my CPT now. How do I get it to do that?
user3382763's user avatar

15 30 50 per page
1
4 5
6
7 8
2320