All Questions

35,685 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Custom post shows 404 after theme change

i have a custom post created using a plugin. But randomly say if i change the theme the post shows a 404. I tried flush_rewrite_rules() and resaving the permalink, theme change but still it shows 404. ...
user avatar
0 votes
1 answer
59 views

Theme starter content translation is not working

I have written and translated a theme and all is working fine, except the starter content. It seems that i am not able to translate the content and it is still displayed in English, even though I have ...
Badan's user avatar
  • 225
0 votes
0 answers
548 views

forgot password page with expiry link email of 60 minutes

I've created a password recovery page. The page works correctly, the only thing I want to add is a 60 minute expiration date for the password recovery link. Here's what happens when a user wants to ...
Matteo Feduzi's user avatar
0 votes
1 answer
94 views

Call function with button and return response

I'm trying to do the folllowing. I have a button in my template (in templates folder of my plugin). When they press the button I want to call a function and send and id to the function. In that ...
nielsv's user avatar
  • 173
0 votes
1 answer
43 views

Allow users to upload attachments to certain posts

I am hoping to get some possible solutions from you all :) I have 330 regions set up as a taxonomy category. Each region has it's own landing page displaying posts relating to that area. I wanted a ...
Shaun21uk's user avatar
0 votes
0 answers
370 views

ACF in WooCommerce mail template

I am using https://www.advancedcustomfields.com/ plugin in WooCommerce and I have set a custom field named "sub_domain". I am trying to display the value of this custom field in the Woocommerce ...
Zabzuki's user avatar
0 votes
1 answer
222 views

Can't Target a Widget's Elements using jQuery

I have a sidebar widget that has some elements inside I'd like to modify. The widget generates it's code from the "Action Network", so the content of the widget is loaded dynamically from another site ...
csaborio's user avatar
  • 112
0 votes
1 answer
36 views

On just 1 (new) page of my site there appears a wordpress footer with copyright 2012 which I want to remove

On my infinite pro site, I made a new page, which shows not only my footer with copyright, but also a wordpress copyright 2012! I cannot find how to remove the last one. All the other pages are ok! ...
C. Vloemans's user avatar
0 votes
1 answer
413 views

Duplicate/Clone a Multi-site But Use Same Images & Resources?

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resources. Is this an easy process? I realize I can strictly instruct my url paths, but in ...
Bruce Banner's user avatar
0 votes
0 answers
23 views

Always hide a page from the menu

I have a page that solely exists to display search results from a different search page. I am creating a plugin and need to make sure when the plugin is activated and pageA and PageB are created pageB ...
Matthew Brewer's user avatar
0 votes
1 answer
364 views

Getting value of variable from functions.php and debugging it

I am trying to inspect a variable obtained in functions.php for debugging purposes. I am defining a variable $current_user by executing the shortcode to obtain the current logged-in user. Then I am ...
Mike's user avatar
  • 1
0 votes
1 answer
142 views

Inserting data with Geometry field

I am trying to insert data which contains a POINT field. I am using the $wpdb->insert method but when generating the SQL it is wrapping the POINT in quotes. global $wpdb; $table = $wpdb->...
StripyTiger's user avatar
0 votes
1 answer
105 views

How to enable error reporting for wp admin section

I have updating my wordpress version to latest version after updating it locally.When i try to edit a page the page crashed and not working after editing and save.I have enable the errors but if show ...
user172309's user avatar
0 votes
1 answer
552 views

How to show posts of the same category on a page?

I have created a custom page template to show all the categories in timeline fashion using this piece of code: <?php $categories = get_categories(); ...
Rahul's user avatar
  • 229
0 votes
0 answers
42 views

How to add <div> inside WordPress comments loop?

I know we can add in posts loop using in index.php and in single.php by filtering the content but I don't know how to add after certain comments. For example, if a post have comments, after 30 ...
KA.MVP's user avatar
  • 3
0 votes
0 answers
83 views

SEO Site Title appearing in google search despite not being added

I am using Yoast SEO plugin for my WordPress website. I have not added Site Title to SEO Title in Yoast Content-Type Post settings or the post itself but it is still showing Site Title when the post ...
Haris Ayyaz's user avatar
0 votes
0 answers
305 views

Using a SendGrid transactional template with wp_mail

I want to use a SendGrid transactional template to format emails which I am sending using the wp_mail function. I'm sending emails like this: function mytheme_send_email($user, $message){ $...
ellen's user avatar
  • 345
0 votes
1 answer
893 views

How to create better WP_Query to look for date time which is anywhere between two meta values?

The following arguments are used for WP_Query to check if a reservation for a game can be created. Meta input fields for post are created using ACF DateTime Picker and set to Y-m-d H:i:s $start_date =...
Ivan Topić's user avatar
0 votes
1 answer
393 views

Access html element in media modal with jQuery

I'm using the following code to add the required attribute to a textarea tag. HTML: <label class="setting" data-setting="caption"> <span class="name">Beschriftung</span> ...
Osvald Laurits's user avatar
0 votes
0 answers
103 views

When upload a PNG a noise appears in the thumbnails

Since we updated wordpress something strange has happened. We have a woocommerce where products have different color options for each part of this, and when you select a color, the image with that ...
Raul Plana's user avatar
0 votes
1 answer
279 views

Creating an archive page or simple template to list all values of a custom field of specific post type listing

I have a custom post type named 'lawyer' and it contains various custom fields. two of the custom fields are 'state' and 'city'. i want to create a archive page or simple page(anyone will do) which ...
Chinmay Ramraika's user avatar
0 votes
0 answers
90 views

Cannot publish posts or pages when I change permalink structure

I changed the permalink structure to be just /%postname%/ without the index.php, I've added the required lines to the .htaccess file, Allowed override in the httpd.conf but it still doesn't work. ...
Žiga Stupan's user avatar
0 votes
2 answers
2k views

Trying to access second site dashboard on a multisite configuration proceeds to an error

Having this issue that I create a sub-site and when I try to access the dashboard of that sub-site it leads to this error This page isn’t working domain.com redirected you too many times. Try ...
Testig Content's user avatar
0 votes
1 answer
34 views

How to display post meta bellow every posts

How to display post meta bellow every posts? I want to add categories underneath my posts. Just like this one Thanks in advance!
Ihsan Nurul Iman's user avatar
0 votes
0 answers
43 views

Wordpress logout appends cache/all/index.php to the site_url()

I have a wordpress website when i try to logout using custom menu logout link and redirect to home page it appends this cache/all/index.php to the site_url() like https://www.example.com/cache/all/...
pooja's user avatar
  • 1
0 votes
1 answer
192 views

Two types of product categories on shop page

I'm hoping someone can help me out with what i'm trying to do currently. I'm using widgets to show the categories on my shop page, and I want to add two types of product categories in it. The first ...
kitmin's user avatar
  • 3
0 votes
2 answers
31 views

Fix common misspellings/errors based on array of replacements

I'm trying to set up a function to fix common content errors on a site. I want to take an array of post fields $check_fields and check them for common errors as set up in an array called $...
warm__tape's user avatar
0 votes
0 answers
22 views

Update htaccess in several WP sites at once

I make changes to htaccess file quite often and having several sites to manage, I have to update every htaccess file in every site. I was wondering how to automate this task... I was thinking about ...
Roberto Jobet's user avatar
0 votes
1 answer
42 views

Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?

So, let me clear everything at the start: I'm not on shared hosting. PHP upload limit is already set for 700mb. PHP memory limit is set a 512mb. Nginx, PHP-FPM and WordPress' logs tells me nothing ...
Jean-Philippe Murray's user avatar
0 votes
0 answers
18 views

Wordpress discards PNG file when uploading plugin file

I created a simple WordPress plugin to customize the login screen. The plugin consists of three files: index.php - adds the actions and filters functions.php - contains the functions to customize the ...
Prdufresne's user avatar
0 votes
0 answers
668 views

Filter orders in Admin area based on logged in user

I have a booking store which uses custom user roles to separate different user types. One of the user types is an 'agent' who makes orders on behalf of end-customers. I've successfully set up the ...
user1192309's user avatar
0 votes
2 answers
230 views

How to customize 'WordPress' in sent email using wp_mail function?

I am creating a contact form on WordPress site. The form is perfectly working with following code: //validate email if(!filter_var($email, FILTER_VALIDATE_EMAIL)) ...
KA.MVP's user avatar
  • 3
0 votes
0 answers
212 views

Using wp_editor() when not logged stopped working

I've build myself a custom page template. Within this template I'm using the wp_editor() function. Sadly, when I logout now from my wp site and go now to the page I want to see, I'm getting an error ...
Johnny97's user avatar
  • 214
0 votes
0 answers
44 views

Permalinks are not working in Wordpress

I deployed My Wordpress Blog in one of my subdomains in Digital Ocean. I am running apache2 as my webserver. .htaccess file related to my WordPress installation: # BEGIN WordPress <IfModule ...
Gopibabu's user avatar
0 votes
1 answer
130 views

Hook for validating and rejecting frontend image upload

I am making a plugin that checks the contents of uploaded images. Right now I am testing if I am using the right hook, so I use getimagesize() to check the image (I am aware this is not the best/most ...
WhaleShark's user avatar
0 votes
0 answers
238 views

Issues adding Recaptcha v3 to Wordpress Registration

I'm having a problem with adding Recaptcha v3 to my WP registration form. The recaptcha seems to be registered and working and communicating with Google's api. I'm running into problems when I try to ...
J. Stockland's user avatar
0 votes
0 answers
726 views

How to get WordPress Theme Customizer options in the REST API?

I am trying to work with the WordPress REST Api as a backend for a React application. But I don't understand how to get/fetch the customizer options (check this image for example -> https://i.stack....
Enthusiast's user avatar
0 votes
1 answer
17 views

How can error pages be customized

Googling this comes up only with information about customizing 404 pages of course, I can't seem to find a way to customize this: I'm using a plugin that allows users to submit stuff in the frontend, ...
MAR's user avatar
  • 109
0 votes
1 answer
241 views

What is the source of the $post_id in a hook argument?

I am learning meta boxes in Wordpress theme development. In a tutorial I watched, tutor wrote a function for saving meta box values. As an argument he add $post_id and $post. I know $post is a global ...
NoobDev's user avatar
  • 13
0 votes
1 answer
43 views

form submission reverts to index.php template

I have created a contact us form which sends an email when submitted. While the email triggers successfully, the submission leads to a page with my index.php template without any change in the URL. It ...
Divya M.P.'s user avatar
0 votes
0 answers
470 views

Customizing a new page used for blog posts with Avada theme

I'm using the avada theme for my website and I created a page called 'My Blog' and in reading settings I set this to display recent posts. It works, but when I created the page I selected a custom ...
Geoff_S's user avatar
  • 123
0 votes
1 answer
374 views

Peepso: Add extra data field (custom post meta) to postbox

I know that this can be edited in the Peepso core, but I want to be able to update the plugin. I think I found a filter I can use to edit the postbox and allow another field. The form is for the ...
user avatar
0 votes
1 answer
100 views

How can I send an email to a user when a post in their category changes

I am trying to send an email to my students when I create a new exercise for them. I create a category that has the same name as the user [student]. Then when I create a new exercise/assignment I ...
Willie Thomas's user avatar
0 votes
1 answer
142 views

Dynamically display sub-categories on primary menu without adding them

Title says it all i guess. All i need is not having to go on menu and add a sub-cat everytime i create a new one. also, is it possible to order them alphabetically?
Francisco Ribeiro's user avatar
0 votes
1 answer
417 views

WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()

On plugin activation hook I want to create a table but the following code is giving Uncaught Error. I just wonder why it is not giving this error since I am properly including update.php. global $...
pixelngrain's user avatar
  • 1,400
0 votes
1 answer
2k views

Custom Post type shortcodes

I create a custom post type (features) in my theme with Advanced Custom Field. I want to know how i can create a shortcodes of my custom post type. so that i just used a shortcode of that custom post ...
ruby's user avatar
  • 3
0 votes
0 answers
192 views

Does it make sense to check a nonce on user log in?

I read the following blog post about implementing custom user log in: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ In the post, the author walks through some PHP code for ...
Jesse Aldridge's user avatar
0 votes
1 answer
45 views

How can I get custom post types to recognize pretty permalink variables?

I'm using PODS to create a custom post type called "automobile" on my site. This results in a permalink structure that looks like this: /automobile/automobile-page I want to be able to send ...
Bill's user avatar
  • 1
0 votes
1 answer
211 views

How to customize file path for 404 redirection in php?

I made a plugin with a custom post type postcard. Most of postcards are private. I would like to redirect the logged out user in a specific php file inside my plugin instead of the 404.php or achive....
J.BizMai's user avatar
  • 850
0 votes
0 answers
29 views

Order by meta_key field in Wordpress not meta_value field value

I have a requirement where I need to show all posts having thumbnail first and ordered by title and then remaining posts ordered by title Below is the code I tried $the_page = (get_query_var('paged'...
Dashrath's user avatar
  • 123

15 30 50 per page
1
379 380
381
382 383
714