All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
26 views

Change text string in a plugin

I'm using the WooCommerce Waitlist plugin, but I'd like to change it to be for products that haven't been released yet, ie for "expressions of interest". To do this I need to change a lot of strings, ...
0
votes
2answers
17 views

HTTP status 404 (error) when trying to log in

I've changed the http:// host to https://, then accidentally saved it. Now I can't log in to the admin panel having '404 Not Found' page. How can I fix this?
1
vote
0answers
9 views

Automatic Maintenance Mode during All in One Port

I often use "All in One Migration" plugin to migrate from development to production stage. The site is about 2 GB in size. Is there a way to automatically place the website into Maintenance mode when ...
1
vote
1answer
16 views

Display all post by user selected category

i have code make user select category: <header class="section-header"> <a class="link" href="<?php echo home_url(); ?>/comic-hot/" title="Truyện hot"> &...
3
votes
1answer
24 views

.htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin

This is my current .htaccess: # Remove filename extension <IfModule mod_rewrite.c> # This will remove the .php extension if it is not a directory, the file does not exist and it's not a ...
0
votes
1answer
22 views

why is my postmeta table is so heavy

One of my database is realy heavy (+100Mo) for a site with not so many content (like 40 pages & 10 posts)). I found in phpmyadmin that my table "postmeta" is 95Mo. So i wonder to know what are the ...
0
votes
0answers
9 views

Website Load Time takes forever

Hi weve got two dashboard in wordpress, One is the admin dashboard of the website and the admin dashboard of the client. For example my website name is www.abc.com, inside the admin dashboard theres a ...
0
votes
0answers
8 views

How to edit hero-section entry-title for Genesis child theme 404 page

I'm using Genesis >> Business Pro child theme. I've created a custom 404 page in my child theme. I've gotten everything to work EXCEPT... I need to change the title of the page, depicted in the ...
0
votes
0answers
14 views

How could I use action/filter hooks to insert new fields for a new tab in the 'Add-Fields' Plugin? [on hold]

I have recently begun learning la-ravel for use in developing word-press plugins. I have ran into a problem as I have no idea how I could add more tabs to the 'Add Fields plugin' that a potential ...
1
vote
0answers
23 views

Some PDF files get Forbidden Access and other open normally on the same directory subsites

I have a WordPress multi-site with 4 subdomains. All PDFs in the main domain site work fine while on subdomain I get Forbidden access for certain PDFs. For instance when I open: http://example.com/...
0
votes
1answer
11 views

Overwrote index.php. When I restored it, I got lots of Notice level errors

I overwrote the index.php file in the main directory of wordpress. I was working on something else and uploaded an index.php file from a different project. I didn't realize and no-one pointed it out ...
1
vote
0answers
21 views

Malware script in database post table only? [on hold]

How can java script be visible in phpmyadmin posts but not visible within the wordpress environment?? Been struggling to clean a wordpress site after an annoying hack which popsup ads and redirects. ...
1
vote
0answers
9 views

What happen after new plugin get installed in term of permissions?

Using Ubuntu to host WordPress, I am wondering about permissions of files for newly installed plugin, how would they be executable? permissions for the folder that has the wordpress installation: ...
0
votes
1answer
31 views

How can I show the author's latest post with title?

The following is my code: (klcom is my theme name) I just show the author by: name and description, I want to show the author's last 3 post with tile after each author, How can I code? Thanks <...
0
votes
0answers
25 views

Gravity Forms Populate Fields From Another Field [closed]

I have a Gravity Forms form with multiple pages. Page 1 asks for a store #. I want page 2 to auto-populate meta information from that store (which is set up as a user using role "shop") using a ...
1
vote
2answers
15 views

WordPress Light/Dark Theme best practices? Is there a way that really works?

We currently have a light/dark theme enabled on our WordPress site using cookies and a .dark class in CSS. It works, but makes using WP Total Cache almost not worth it as any post/page using the ...
0
votes
1answer
14 views

Show image after X para - center aligned

I am using this code in wordpress functions.php to display featured image after 1st para. The problem is: Image is showing left-aligned. I want it to be center aligned.. Please modify this code so I ...
0
votes
1answer
58 views

Why can my filter query SOME metadata but not other metadata?

I'm stumped by what seems like a simple task: I want to randomly select a post that fits certain criteria (metadata set by a specific plugin) and then return that random post to the plugin in question....
0
votes
0answers
14 views

Show More Show Less - Not Working

There a 'load more/load less' function running on this page which I'm attempting to debug. https://maes-mynan.cogitoprojectx.com/holiday-homes/the-llewellyn-lodge-lodge/ You can see it the section ...
1
vote
0answers
15 views

WP CPT template not found when another CPT is active/public = true

I have 2 custom post types in my WordPress theme, and never had any problems before when both are set to; 'public' => 'true' However on this occasion, whenever I set one to true the other one ...
1
vote
1answer
38 views

htmlentities and editing text

I am receiving user input via ajax. I am using stripslashes, and then sending to the database through Wordpress insert function. When I display the data on screen, I am using htmlentities I also ...
1
vote
1answer
15 views

Dynamic title in Wordpress homepage

My homepage setting is "Display the latest post's" and I have the number set to 1. So my homepage show's my latest post. I have YOAST plugin setting the title in homepage for now. I would like to ...
1
vote
0answers
9 views

Making Mathjax dynamic so it renders input without page refresh

I use the Simple Mathjax plugin on my Wordpress site to allow users to add nicely formatted mathematics by writing it within dollar signs, $...$ or $$...$$. This works on pages and in posts but not ...
0
votes
0answers
12 views

Executing PHP not related to wordpress - correct folder? [closed]

I want to execute a php file that accesses databases that have nothing to do with wordpress. Many years ago i wrote a VB app on windows desktop that could access MySQL tables on a website remotely. ...
0
votes
1answer
17 views

How to remove “Archives” after category name?

There are many similar questions, but none of them have exactly the same issue as I do. Unfortunately the solutions suggested there have not fixed my issue. After selecting a category in my Shop page,...
1
vote
0answers
26 views

Preg Match All doesn't Allow echo first character for Wordpress Taxonomy Tags

I have been working on a code, that finds particular words from my content and converts them to wordpress Taxonomy Tags. I want to prefix them with a '#' symbol... But somehow it doesn't work This is ...
2
votes
0answers
46 views

Limit REST API output to current logged in user that is also author of the content

https://developer.wordpress.org/rest-api/using-the-rest-api/frequently-asked-questions/#require-authentication-for-all-requests This requires authentication for all reque​sts. add_filter( '...
0
votes
0answers
40 views

Is there an actual way to synchronize 'production' and 'develop' WordPress databases?

I work with WordPress and I work with git. My code is versioned and I am happy with the workflow. What bugs me is database synchronization. I need to work with cloned database on my local ...
-1
votes
0answers
9 views

Alter shipping cost for order where shipping cost is based on order meta

I know how to dynmically change shipping costs to an extent. I have successfully changed it on the checkout page and also for the final cost that is saved for the order, depending on how I'm ...
1
vote
0answers
18 views

Solve cors problem using rest api or ajax

I'm building an app with nuxt using WP as a CMS, so I have this code in my functions.php to allow any origin (temporary) using the rest api and admin-ajax urls function add_cors_http_header(){ // ...
1
vote
1answer
16 views

ERR_TOO_MANY_REDIRECTS status 302, how to configure NGINX locations to work with AWS ALB?

How to configure NGINX conf location to work with AWS ALB? I have a docker-compose that simulates a staging environment that is deployed to AWS ECS, that works fine, status 200 OK: /review-staging ...
0
votes
0answers
22 views

Suddenly got alert when trying to login to admin panel of wordpress

Suddenly starts receiving alert when trying to login to wordpress admin panel. Hosting is on IIS server. It is type of alert prompt box given by firefox browser only with following text: To display ...
0
votes
1answer
15 views

Creating duplicate Wordpress site for development reasons

How can I create a duplicate site in Wordpress running under a subdomain for development reasons, in plesk panel? Do I have to do anything for search engines to crawl of the second site? Thank you in ...
1
vote
0answers
13 views

get_user_meta an ID for multiple functions

i created an frontend profile for users, where they can add some informations to there profile. All the infos are stored in the usermeta. To show these informations on the frontend profile of the user ...
0
votes
0answers
14 views

Mask transition for image [closed]

The main goal I want to achieve is from previous to the new image should change that too. if I keep the mouse on the image then slowly display another image like a mask transition here is a below ...
1
vote
1answer
20 views

wp_insert_post not working

I'm trying to get the movie info from the omdb web service and it worked fine but it doesn't work when I want to use wp_insert_post to create new posts. This script acts as the user enters the movie ...
0
votes
0answers
11 views

How to make a tab videos in my website? ( kingtube theme) [closed]

I have a kingtube theme for wp-script. And they let me insert one embed video. But I would like to show more options for other servers. like this page: https://dragonball.sullca.com/capitulos/dragon-...
0
votes
0answers
17 views

edit SCSS in bootstrap theme [closed]

I installed WP Bootstrap Starter in my wordpress. Many styles are managed in .scss files, I don't know the syntax and I can't find them in the folder. How do I edit/delete or convert SCSS to CSS?
-1
votes
0answers
13 views

Automatic Email a Data [closed]

One of my website has php page which actually functioning for tracking of my website data now this functionality leads me to very heavy database space in around mbs in just week so i wanted to ...
-2
votes
0answers
23 views

Horizontal devider Between every post [on hold]

Like below picture..... Here is my code <?php /** * Block 1 Widget * Class Glob_Widget_Block1 */ class Glob_Widget_Block_1 extends WP_Widget { public function __construct() {         $...
0
votes
0answers
23 views

Multi-Level Nav Bar

Is there anyone here with a sample code for using walker class with multi-level function. I have a Nav walker class but it seems that it can only traversed to first element like this: <ul> &...
1
vote
0answers
12 views

Standard Fail2Ban vs. WP Fail2ban vs. WP Fail2Ban Redux

I am working on revamping my wordpress site security, hosted via cloudways. Cloudways is generally great. I was working on installing WP Fail2Ban Redux: https://wordpress.org/plugins/wp-fail2ban-redux/...
1
vote
2answers
26 views

Bootstrap doesn't work on admin menu page-How to override wp-admin style?

I am building a plugin and i use bootstrap to style it but i notice some components styles don't work properly.Someone suggested in a blog post to use wp_deregister_style('wp-admin'); which did fix ...
0
votes
0answers
19 views

WordPress get_option from dropdown - failed to open stream: Undefined error: 0

I have dropdown menu that has this as the values: 'options' => array( '' => 'Show', 'afd3generalsettings' => 'Hide', This is the code I'm using to ...
0
votes
0answers
6 views

Booking system with pricing rule [closed]

I am looking for a woocommerce wp-plugin or code that can calculate the final price according to number of booking days as following : $4/day $6/3days $8/5days $11/7days any ...
0
votes
2answers
18 views

Set Multiple Meta Values as an Array Using dispatch( 'core/editor' ).editPost() Call in Gutenberg/JS

I'm attempting to store both an Image's URL and ID in a post's meta field via a Gutenberg component, but am having trouble figuring out how to store those multiple values in an array. I can store a ...
1
vote
1answer
30 views

For WordPress is there content in the database which I can safely ignore?

I am exploring possibilities to minimize the size of the database dump (for backing up the WordPress content automatically) of several WordPress instances. What I am wondering about most of all is if ...
0
votes
0answers
11 views

How to create a Settings Page with a list of existing taxonomies and allows the admin to associate a CPT with these?

I'm working on a plugin that includes a custom post type, by default this CPT will not be associated with any taxonomies. On the Settings page for the plugin I'm looking to show a list of the ...
0
votes
0answers
18 views

How to remove 404 image on wordpress?

I am trying to remove a 404 image from my WordPress site. I tried the Broken Link Checker plugin, but that plugin is not detecting that link. I want to remove this link entirely so that it will not ...
0
votes
1answer
19 views

WP_List_Table Inside Metabox Not Working on Clicking Search Button

I'm trying to display a WP_List_table inside a metabox. The metabox is for listing registered users to a course(LifterLMS Course Post Type). The table columns contain user_id, user_name, percentage &...

15 30 50 per page