All Questions

0
votes
0answers
2 views

Permalink conflict with React Router in subfolder

I have a Wordpress install on the root of my apache server. I've built a photo gallery in React which is in the subdirectory /gallery. The gallery home page load properly. If I try to go to any other ...
0
votes
1answer
11 views

Custom Shortcode AJAX 400 Bad Request

I'm writing a custom shortcode that will need to call some PHP file via AJAX, after some user event. But I am getting Bad Request 400 as if my wp_ajax_* actions aren't being bound. Here is a simple ...
0
votes
1answer
13 views

Include Minit plugin in theme

I'm trying to include the Minit plugin in the inc folder of my WordPress theme and calling it in my functions.php file: require get_template_directory() . '/inc/minit-master/minit.php'; However, ...
0
votes
1answer
8 views

Gravity Forms and regex - Doesn't seem to validate

I'm attempting to validate a field to ensure it is 9 numerical digits (Canadian SIN number format). I've got the below filter set up: add_filter( 'gform_field_validation_1_1', 'validate_SIN', 10, 4 );...
0
votes
0answers
8 views

How to validate custom fields before inserting

I am working on a woocommerce + dokan website with the help of advance custom fields. In my store, I have to add some custom attributes to a product and then validate the custom attributes. I can ...
-1
votes
0answers
6 views

WooSquare Pro Sync Issues [on hold]

We have recently set up the WooSquare Pro plugin to synchronize WooCommerce to our Square POS. We are doing the sync from WooCommerce > Square. We do have multiple locations in Square (We will ...
0
votes
1answer
12 views

Wordpress Http error no matter what I do

I've tried to upload a few files to Wordpress. Every time I do this, Wordpress responds with a http error. I can't upload themes either. Whenever I try to upload, I do it on my computer (Mac), and ...
0
votes
2answers
6 views

Issue with wp_localize_script

unfortunately I have not found a solution here and via google. I get the following error message when calling: Uncaught ReferenceError: ait_php_var is not defined ../assets/js/ait_buttons.js?wp-...
0
votes
1answer
10 views

Setting up Wordpress Locally on WAMP for a new site (with one already)

Here are the steps I took in downloading and setting up WordPress on a WAMP (Windows, Apache2, MySQL, PHP): 1.) Download WAMP Server, here: WAMP Server Installation 2.) Download WordPress on ...
0
votes
0answers
7 views

Custom user registration fields in user_register hook

i am trying to send new user register email to administrator with user_register hook and wp_mail function. I created some custom registration fields and now i wanna send them via e-mail, but i cannot ...
1
vote
1answer
9 views

Woocommerce add class to existing class based on product attribute selection

I have started to build a woocommerce site and created a variable product and 2 attributes for the variable product. The first attribute is color and the second is size. I would like to add ....
0
votes
0answers
9 views

How to install adobe custom fonts to a salient theme wordpress [on hold]

I need to install an adobe font to appear in the typography dropdown of my salient theme. I'm very rusty on css and have a limited understanding of both wordpress and php, so please be very thorough ...
0
votes
0answers
8 views

Several woocommerce conflicts with Storefront child theme [on hold]

My website uses a child theme of the Storefront theme, which is supposed to have good integration with Woocommerce plugin. After the last update, any product I try to load returns several errors. The ...
0
votes
0answers
6 views

Refresh page after login with litespeed cache

I am using the litespeed cache plugin and ajax login plugin. The page does not refresh after users log in. it actually seems to be refreshing, but no. I can not. // $form.data("action") for get ...
0
votes
0answers
12 views

Custom query pagination with php parameter as arg problem

I have create a loop with a custom query. This query contains a php parameters that i m getting from url with GET method. The problem is that the pagination (even if it counts the posts correct at ...
1
vote
0answers
12 views

Why is the new Gutenberg editor so narrow, and how to make it wider?

I'm beginning to like Gutenberg, but I find it too narrow, particularly when working with the 'Columns' block. Why is it so narrow, and can it safely be made wider? I could try doing so with CSS, but ...
0
votes
0answers
7 views

Ananke Theme - How can i edit transparent page overlay? [on hold]

I would like to change the style and size of the transparent bar (not sure if it's considered a sticky header) at the top of the Ananke theme. I have messed with quite a few div tags but have not had ...
0
votes
0answers
4 views

Images returning in uploads folder

I spent hours cleaning up old thumbnails from the wp-uploads folder but I saw they all reappeared again. What could be causing this?
0
votes
1answer
17 views

Warning: preg_match(): No ending delimiter '^' found in

we are receiving this error: Warning: preg_match(): No ending delimiter '^' found in /home/goose/public_html/wp-content/themes/goose/partials/contact.php on line 32 Please enter a valid email address ...
0
votes
0answers
7 views

Teaser Image Shortcode Link

I'm using the following code which is a image teaser shortcode used within my theme: [tg_teaser columns="one" image="http://blah.com/image.jpg" title="title goes here" align="left" bgcolor="" ...
0
votes
3answers
18 views

Add post title as a link parameter

I want to pass the 'post title' of current post as parameter into a link For example in this way: <a href='http://example.com/send-cv/?job_position=seller'>apply to job</a> Where the ...
0
votes
1answer
6 views

Passing data from a page to an external link

I am creating an event booking site on Wordpress: User clicks on a Book Now on a event page on WP website. He lands on external page where he can see: Title of event(prefilled and uneditable), ...
0
votes
0answers
6 views

Meta data in wp_posts table

I was checking my wp_posts table and I saw some appearances from themes and child themes I used in the past under post_title column (e.g. the title being mh-healthmag which is the name of the child ...
0
votes
0answers
6 views

Custom jQuery not triggered/working after gravity form default validation error message gets displayed

I am adding custom jQuery to display certain fields on the basis of conditional logic. For eg: When a "Business Type" field value is selected as Company, "Company Name" and "Company Website" fields ...
0
votes
1answer
13 views

Redirections and rewrites to subdomain

I am currently working on a new WordPress website, to partially replace a non-WP website that includes a webshop. Now, the plan is to migrate the webshop and all matching pages (shopping card, order ...
0
votes
1answer
15 views

How to Implement Custom Taxonomy Conditional Page?

I want to create custom taxonomy conditional page. My post type is "laptops". My current code dose not working. But this code work for post_type "post" section. add_filter( 'template_include', '...
0
votes
0answers
9 views

JetPack related posts, how can one appear after the other

I'm having some trouble trying to make a few related posts display one after the other. I tried to use clear: both, and display: block, but for some reason it's not working. It's the "Relacionado" ...
0
votes
1answer
13 views

How to make widget appear conditionally

I hope you can help. I have two pieces of code that I do not know how to pair. I want my widget to only appear on posts and furthermore only if one specific category is picked. Whenever I try to put ...
0
votes
1answer
18 views

How to allow &nbsp with wp_kses()?

I have an html containing &nbsp but I am unable to pass it through wp_kses(). I have tried adding allowed html array('&nbsp' => array(),) but does not seems to work. I there a way or I ...
0
votes
1answer
7 views

Script for q translate

Would like to add this script on my website just on the top of the memu right side, how can i do that? Here's the code: <!-- GTranslate: https://gtranslate.io/ --> <a href="https://...
0
votes
0answers
6 views

WordPress problem with nginx / Visual Composer

I have wordpress site running on apache and had to transfer it to nginx server. I made pretty standard setup following instructions on nginx site (see my nginx config on the bottom). All works fine ...
1
vote
1answer
21 views

Change add to cart text if a product is in cart on WooCommerce

In wooCommerce, I am changing add to cart button text when a product is in cart with the following code (added to functions.php of my child theme) that works well only for simple product type: ...
-2
votes
0answers
11 views

woocommerce Sigin form Query template

How can i find woocomerce query for login after form submit? I want to change th email verification field default as verified to esacpe email verification for user
0
votes
1answer
16 views

Why should I escape translatable strings? and how shall i do that?

Is it really need to escape translatable strings?
0
votes
0answers
24 views

php preg_match with multiple patterns

I am trying to combine two preg_match patterns separate with ,|,. /blog\/page\/[0-9]+\/?$/ with /tag\/ skip in /blog/page/ and /tag/ /page\/[0-9]+\/?$/ with /[0-9]+\/?$/ ex. /page/2/ and only /2/ /(...
-2
votes
2answers
19 views

How to stop EU users from accessing my website?

I have a website using self-hosted WordPress. I am pretty confused with the GDPR law by EU. So, I want to block EU users from accessing my websites. How i can do that? Please help!
-1
votes
1answer
17 views

How we can avoid my view count on my posts

As I'm getting the count of visitors on my post, but if I visit on my own post I don't want to increase my count to make my view count stat perfect. If can anyone help me with this.
0
votes
0answers
14 views

Need to replace some text string on a title

we are using Bridge theme in Wordpress as a basis for a restaurant menu. This menu has titles of food that in the plugin template (restaurant-menu-list-item.php) are called to be printed on the screen ...
0
votes
0answers
14 views

Display Form in Admin Panel and Save data to Database

I have a Add New Button in Admin Panel like below image. I would like to display a Form like below image and save data to a Database after clicking the Add New Button. How can I do that ? I am ...
0
votes
1answer
22 views

How do I prevent Wordpress from eating my code?

I'm writing a guide and putting code examples. If I use the visual editor the code indentation is lost. It will also take some code and strip it out. If I use the text editor I can't ever switch to ...
0
votes
1answer
17 views

Refactor File Upload to check for existing filename and append -1, -2, -3

I have an existing front end file upload works perfectly, but I'd like to have it check if an existing file has the same name and append "-1", "-2", "-3", and so on… I've searched and found a ...
0
votes
0answers
10 views

Form Data Collect/Display/Filter

We’re building a database of member’s community projects. The expectation is that we can have a party submit their project info, then the submission will display on a dedicated site page and that ...
1
vote
1answer
15 views

When clicking on “home” page from any other page, it goes to IP address and my website doesn’t load

I recently set up my WordPress website and just noticed that if I click the home page from any other page, it points to the IP of my instance and the website won’t load. I have checked the URL(s) from ...
0
votes
1answer
23 views

How to Order by random on a SQL query

How do I change the last line to order by rand? Now it's sorting by date of my woocommerce products. INNER JOIN $wpdb->postmeta AS mt1 ON (posts.ID = mt1.post_id) WHERE posts....
1
vote
0answers
20 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
-3
votes
0answers
12 views

Hang up the site [on hold]

My site is interrupted and the problem is not hosting, my hosting support said that the problem is the site white page Please help me www.yuotabshop.ir
1
vote
0answers
19 views

Is possible add class for last post of Custom Post Type?

I need to add a different class for last post of a Custom Post Type. Is it possible? I have found this code, but it works only in posts function wpc_last_post_class( $classes ) { global $...
0
votes
0answers
9 views

Internal forward link with add_rewrite_rule

I want to forward a link to another link but internally. I've set up the wordpress to show post links like this - https://asif.bzstage.com/medical/website/nyc/ which only throws 404 error. However If ...
-1
votes
0answers
6 views

Woocommerce order change to on-hold does't trigger email and stock reduction

This is a local payment gateway called fawry. Its scenario how it works: click on place order button at checkout gives a pop up window then i enter the visa details to complete the order and click pay ...
0
votes
1answer
12 views

How to have a dynamic slug and rendering the archive-{post_type}.php?

So I have a Custom Post Type named network and Custom Taxonomy name company_category. Everything is all good until I can't render http://localhost/digitalhxstaging/company. Both Company Category and ...

15 30 50 per page