All Questions

0
votes
0answers
16 views

get_category_link() returns wrong url, result is `http://my_site_url.com/http://my_site_url.com/my-slug` instead of `http://my_site_url.com/category`

I am using the following code to access my categories: <?php $categories = get_categories(); foreach($categories as $category) { echo '<li><a href="' . get_category_link($...
0
votes
1answer
11 views

WP site not working at all on mobile

My website, was working fine earlier on, but something has gone wrong within the last few hours. All of a sudden the site has stopped working completely on mobile devices but works normally still on ...
0
votes
0answers
15 views

How to make a Wordpress REST API?

If I declare a PHP variable in custom page: carbon_get_theme_option( 'crb_myName_field' ); Then I use Axios to get this variable via Javascript but not sure which is URL... how do you achieve it?
0
votes
0answers
13 views

call_user_func_array() error in class-wp-hook.php

I have this message when I try to add a new variation of a product on Woocommerce/WP: Warning: call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two ...
0
votes
0answers
10 views

Redux Framework won't load options in front after activate plugin

I have my theme made with Redux Framework, problem is after i enabled plugin redux, i can see my theme options in top bar, but in site in front are not loaded, to have my front view ok, i need to go ...
0
votes
1answer
16 views

SQL query to change the value of a Custom Field

I am looking for a SQL query to change the value of a custom field, but not on all posts. Some posts have in the "post_template" custom field a "temp1" value, and I want to change this value to "...
0
votes
0answers
12 views

Users not being redirected to homepage anymore. What happened here

Not sure what happened here, but i login to the frontend and click login, and it just sits there and the loading icon goes round and round, but nothing happens. However - it does log them in, but i ...
0
votes
0answers
11 views

Redux Framework won't load options after enable plugin [on hold]

I have my theme made with Redux Framework, all good but after i enabled plugin redux, i can see my theme options in top bar, but in site in front are not loaded, i need to go to my theme options and ...
0
votes
1answer
12 views

Reading Content in an Array as it relates to a meta_query

I am capturing a user's Work Anniversary and their content is being stored in an array. So the key as it relates to these Meta Fields is hire_date and the value that is stored in that array looks ...
0
votes
1answer
4 views

How to hide sub fields in a field group and also the entire field group if the answer selected is “no”

I have a field group (repeater field type) set up (titled "Units") with sub fields; sq footage, floor plans and availability (this is a yes/no selection). I have the availability sub field to display ...
1
vote
0answers
16 views

How to extend WooCommerce API to show bookable product availability rules?

I've made a custom plugin with a custom API end point. I would like to access my bookable products availability times so I can use the API with a react front end. So far I have this function that ...
0
votes
1answer
20 views

Debugging wp_query orderby for taxonomy

I cannot seem to find where WP_Query adds the orderby clause to a SQL query. I am using this code: function wpd_team_taxonomy_queries( $query ) { if ( !is_admin() && $query->is_tax( 'team'...
0
votes
0answers
13 views

WordPress MultiSite using paths and wordpress does not update other sites using IIS

I have two issues, one, when I go to update WordPress under upgrade network, it says all done, but the other sites do not get updated. And two, when I network activate a plugin, it does not show on ...
0
votes
3answers
27 views

get_the_content if it contains multiple lines it results in SyntaxError

I use get_the_content to pass to a javascript variable, and then back to another PHP function. This works great, but there is an issue when using get_the_content. If the post contains only one line (...
0
votes
2answers
11 views

Wordpress admin page not found error

I accidentally changed my wordpress website url from what it was to the url which is same as my site url and after then I am not able to login into my admin it shows error of page not found(while ...
0
votes
0answers
10 views

Post tools gone from right side

Using post editor with Laurel theme. All of my right hand tools (ie. feature image, permalink, etc.) are GONE. I was using visual, sitched to code for a few seconds, then back to visual. Everything on ...
0
votes
1answer
14 views

delete_transient on click inside a widget form

I'd like to use transient for my widget. User can choose for how long data can be cached (1, 2, 10 hours). I also want to add a button Refresh now inside a widget form. I don't know how to call ...
0
votes
1answer
19 views

Change Wordpress Login URL to External URL

Trying to change Wordpress login URL to an external Wordpress installation login page. I'm using the code below, but it can only redirect to a page or URL within the same site. I want it to redirect ...
0
votes
2answers
19 views

Enable Authors in Multiple Custom Post Types

I have found the below code to enable viewing the author of a custom post type and it works perfectly for one custom post type. But I need it to work for 4 custom post types called: detox, recipes, ...
0
votes
2answers
27 views

White screen of death on admin pages after moving wp-config up two levels for security

I moved the wp-config to the hosting root and put it in a new directory and then I included it from the WordPress directory like so: include("../../my-fast-cars/fast-cars.php"); this gave me white ...
0
votes
1answer
18 views

Setting Up Child Theme To Take Priority

I'm trying to setup my child theme style sheet with a premium theme I have bought but I'm having a nightmare trying to get to work properly and efficiently. I have downloaded the theme's child theme ...
0
votes
1answer
15 views

Page 404 Error on Localhost

I am currently working on my localhost and the problem is that all the wordpress related urls would direct me to error 404 page not found but somehow i can still access my website which still ...
0
votes
0answers
18 views

“Free sample” variant affects sort by price

On our website we've got products and each product has got two variants - one is with standard price, and second is called "free sample", with price set to 0. This solutions affects the "Sort by ...
0
votes
2answers
27 views

Inline style to PHP

I have a piece of PHP code to grab my post title which I am putting inside of a PHP element on my page builder. $h4 = get_the_title();`echo '<h4>' . $h4 . '</h4>';` I want it to be a H1 ...
0
votes
0answers
13 views

How to edit the html output of blocks that come included with Gutenberg?

I'm finally taking the time to learn how to build themes with Gutenberg. And while most of it seems to be pretty straight forward, I was wondering if there is a way to edit the html output of the ...
0
votes
1answer
21 views

Installed theme uses get_template_directory, breaks Wordpress on Windows

I've attempted to install a theme on a Wordpress installation in a Windows development environment, which will be synced through Git with a production environment in CentOS. The theme has a file ...
0
votes
0answers
6 views

Jetpack update wrecked my sub-menu

Can I roll back a jetpack update? I had extensive sub-menus on my site and when I updated jetpack I now get error messages for all of them.
0
votes
0answers
9 views

Contact Form plugin not sending email [on hold]

Thanks for this great plugin. I installed this plugin in my website https://centralmenus.com/mazzios-menu-prices-and-locations/ and working good for now. But there is an issue I’m facing now. When ...
0
votes
1answer
13 views

How to create custom embed block in gutenberg wordpress

Can someone please help me out here. How can i create a custom embed block in WordPress(Gutenberg blocks), the block should ask the user the URL of the video to embed and some few options like auto ...
0
votes
1answer
21 views

Component toggle not toggling

I'm trying to create a checkbox in inspector controls that will change font size, but it doesn't get checked when clicked var CheckboxControl = wp.components.CheckboxControl el(FormToggle,{ ...
0
votes
1answer
18 views

wp_mail doesn't work when logged in?

I am having trouble with a wp_mail function I created, which sends an email when I press a button. It does work great when you do this logged out. But as soon as I am logged in it stops working. It is ...
0
votes
0answers
6 views

How to customize Order tracking fields in woocomerce Order Management Plugin

I am Creating An Service based Website Where user has to Place Order by Entering Item Identification code. To Track the Service Status of Same Asset, I want the user to enter the Same Identification ...
0
votes
0answers
14 views

Meta title & description not showing in snippet preview in Yoast SEO [on hold]

I'm using Yoast SEO to do my website SEO. Thanks for this Wonderful plugin. I installed this plugin in my website. But there is an issue I’m facing when editing meta title & description. When I’m ...
0
votes
0answers
19 views

Custom cart link - Woo [on hold]

I'm creating a custom Woocommrce theme for a first time. I need help with displaying cart link in header. It looks like this https://imgur.com/AjARqhX and need to be like this https://imgur.com/...
0
votes
1answer
21 views

Block properties, attributes and settings

Reading the Gutenberg Handbook about the new Block architecture in WordPress, I've come across references to "properties", "attributes" and "settings" for the blocks. As there's a lot to read, I've ...
0
votes
1answer
8 views

Advanced Custom Fields value changed after plugin update [on hold]

I'm using Advance custom field plugin. Thanks for this Awesome plugin. I installed this plugin in my website https://centralhours.com/toni-guy-hours-locations-holiday-hours/ But there is an issue I’m ...
1
vote
1answer
17 views

How do I make WordPress send an email to the user when his account gets approved (manual by me)

I was wondering if I could make it so that if I approve a user account via "Users" UI that an automatic email is sent to the user saying something like "Hey, your account on www.website.com has been ...
0
votes
1answer
11 views

Return to the beginning of the results of a for loop

I am currently doing a little script (and I am rather beginner), I would like to know how to return to the result number one of a for loop after the table containing the results have been traveled? ...
0
votes
0answers
14 views

Check Box on WooCommerce Product Page [on hold]

Hi guys i have a requirement to add a check box to some of my products on my site to say YES or NO .. Simply and then pass this along with the product to the cart. The YES or NO will carry no ...
0
votes
0answers
14 views

Index Bloat Killing SEO

I have a strange problem with my WordPress site that has no common solution. I’m currently in the middle of turning my site from a Lifestyle blog to a book-oriented blog and had to delete over 400 ...
-2
votes
0answers
13 views

Review form break in Mobile View [on hold]

Thanks for this Amazing review plugin. I installed this plugin in my website https://centralguide.net/panera-bread-corporate-office-headquarters/ But there is an issue I’m facing. When user open ...
1
vote
1answer
11 views

A to Z List of Custom Post Type in three columns

I want to display custom post types A to Z Index in three columns, but it just lists the first post under each alphabet in three columns, I think there is some issue with the loop but can not figure ...
0
votes
0answers
18 views

can't submit mail from contact 7 form site using wp mail smtp

I have hosted a wordpress site in bigrock server.Then moved it to clients server(Godaddy). Then the contact 7 form stopped working.i have configured the smtp using zoho mail.It is working fine in ...
0
votes
2answers
52 views

How to “Load More” posts via AJAX?

On the taxonomy-{name}.php template for my "Organisation" taxonomy, I am currently showing a limited number of posts, grouped for each term of taxonomy "Format". Where the number of available posts ...
-1
votes
1answer
23 views

i can't overflow images (2017 theme)

So I'm trying this simple piece of code but the overflow feature doesnt seems to work, where am I wrong? The image always resize to 100% of the div width. <div style='position: relative; width: ...
0
votes
1answer
12 views

How to use a 3rd party library to send emails?

I'm trying to improve my emails deliverability by sending emails that are correctly authenticated (correct SPF and DKIM configuration). I have done the SPF part, but in order to use the DKIM i need to ...
0
votes
0answers
15 views

Wp_head () affecting my images layout

So, I was trying to create a grid with different sizes, where when you clicked the image would zoom out and show the whole image. For this I need to apply overflow hidden so the images dont lose their ...
0
votes
1answer
12 views

Create 3 Levels of relations with Wordpress

I need to create this type of relation in Wordpress: A Catalog can have many Products A Product can have many Catalogs A Category can have many Products A Product can have only one Category So when ...
-2
votes
0answers
10 views

Randomness in Google Friendly Mobile [on hold]

How come that sometimes my site is marked as Google Mobile Friendly and rendering is showing well and other times it's still marked as friendly but the render is not going well?
0
votes
0answers
18 views

getEntityRecords and query parameter

Is it possible to get a list of post types filtered by a meta field1 value and order by meta field2 using the select(‘core’).getEntityRecords function? I have seen you can use a query parameter in it ...

15 30 50 per page