All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Sale Badge is showing -100% when I have -50% discount set with Woocommerce Dynamic Pricing Plugin [closed]

Sale Badge is showing -100% when I have -50% discount set with Woocommerce Dynamic Pricing. The prices seem to calculate correctly. I don’t have any “badge”-plugins so I assume that it is Basel that ...
0
votes
1answer
11 views

Filtering Gutenberg Components, not Blocks

I'm currently wondering if it's possible to filter Gutenberg Components, instead of Blocks. For example, I need to add a new item to every DropDownMenu component, which could be achieved by changing ...
-1
votes
0answers
10 views

Member pages (not sub-sites)

I’m setting up a site where users with a logon will be able to create their own areas on the site, but in a very controlled way. The user will be given (for example) 3 pages with a very defined ...
0
votes
0answers
15 views

count & sum the value of custom field of the author post in dynamic posts

I have seen some of the questions and answers here that similar to my case but I can't seem to understand where I should begin. What I have so far is the count each the authors post inside the loop. $...
0
votes
1answer
21 views

Gutenberg: How to display meta field data in the block frontend (save function)

I have some legacy meta fields in my post that I would like to display in my block. I found a documentation for settings meta fields but not how to display them. So I tried this: export default ...
0
votes
0answers
26 views

Error thrown Call to a member function get() on null

Help Urgently needed. My wordpress website has just done some plugin updates and now i cant even log into my wordpress admin/dashboard now and this error message comes up: Error thrown Call to a ...
0
votes
1answer
13 views

Can we apply hide empty to get_the_terms?

I'm using the following to populate terms on my pages... $mget_site_url = get_site_url(); //This gets me all the correct terms... $mget_the_terms = get_the_terms(get_queried_object_id(), '...
0
votes
0answers
25 views

user_has_cap filter allows "edit_others_posts" but not is not allowing updating/publishing

This filter is letting manager users edit specific posts created by other users: add_filter( 'user_has_cap', 'allow_manager', 10, 4 ); function allow_manager( $allcaps, $caps, $args, $user ) { // ...
0
votes
0answers
14 views

Colon is Missing In My Website Url in Wordpress Shortcode

So I've had this shortcode [site_url] working fine until a few days ago, now as I'm trying to use it again and it shows me a https// instead of https://. I've tried using this function: //Website URL ...
0
votes
1answer
11 views

Custom Post type dont use custom page template (slug is not right)

I created a custom post type 'gruppen' and a custom page templete 'page-gruppen.php'. I want to use 'page-gruppen.php' to show my custom post type content but the custom post type uses always the ...
1
vote
1answer
22 views

Wp_query function to search from product_title 'OR' product tags name

I am looking to show search results from either product title or product tag name. I have implemented the product title search through the below code, but I need to add tag name search also into it. ...
0
votes
0answers
10 views

Why I get a blank screen when trying to make wordpress post/pages edits?

I am working on a Wordpress live website, and when I press edit button it just throws a lot of errors in the console, and I can't make any edits. I tried to copy live environment to dev, and I can ...
0
votes
0answers
15 views

How to fix Function create_function() is deprecated in / themes

Apologies as the topic has been asked several times, but as a newbie I'd like to ask a specific help on rewriting the code below. The problem raised when I switched an old site to PHP 7.3 and the ...
0
votes
0answers
17 views

Using a function to change favorites listing

Sorry - total newbie here with Wordpress development. I have the following plugin installed https://favoriteposts.com/ and it allows you to change the default output of the users favorites by using ...
0
votes
0answers
10 views

how to update post content field in wordpress

i have used add meta boxes to customize page content and use wp_update_post to save it. when im creating new page in wordpress it inserts two new record in wp_posts table. one of them has published ...
0
votes
0answers
11 views

How can i automate the price of a product to automatically change based on its sales? [closed]

Say for example, i have product A and product B. Both products have a initial set price. If product A sells (x%) more than product B, i want product A to automatically increase in price by a given ...
-1
votes
0answers
18 views

wordpress: display number of post for each user in his/her authors page [closed]

I need to show the number of articles a author has written. This should display in his/her profile, please. i have added the below function at user.php but it cant display number of post at auhtors ...
0
votes
0answers
15 views

Date translation doesn't work

I would like to translate into French the month of the date I get with the function: get_the_date() I have done several searches and found several solutions but none of them worked so far. I have ...
0
votes
0answers
8 views

Wordpress Buddypress changes groups position

I set up a website in using Wordpress Buddypress, a social site has 9 groups, I want to change the groups position in a good order, but I didn't find any way to do that. Please tell me how to do if ...
0
votes
0answers
7 views

How to add active class for current item and ancestor in new WooCommerce Product Categories List Block widget? [closed]

I am using a Product Categories List Block to list all product categories in sidebar in shop and category pages (like filters). I am listing categories in my site by using a wordpress Widget. ...
0
votes
0answers
32 views

Gutenberg Block: Query for posts with blocks and sort by attributes

Before Gutenberg I added meta_fields like "_my_integer_value" and added them to the post. I could query with something like this: $args = array( 'post_type' => 'post', '...
0
votes
0answers
4 views

how to show comments only author which send own posts in wordpress

I am trying to make things work like where author can see only them post comment in admin comment section . While admin should have all permission. I am having author's post comments in comment ...
0
votes
0answers
20 views

Fatal error with shortcode class [closed]

I am learning a WordPress plugin development. My class is like below. <?php final class My_plugin { public $version = "1.0"; private function ...
0
votes
1answer
14 views

GitHub plugins safe to use in my website?

I have some question about GitHub files, I hope it is a proper place to ask. I downloaded the gravity forms from https://github.com/wp-premium/gravityforms You may know that the plugin itself is sold ...
0
votes
0answers
7 views

Get user edit functions in frontend for site admin

I'm new to WordPress development and programing, so apologies if this find very simple step to do for expert but for me i am really stopped here. I am want to create front end page where site admin ...
0
votes
1answer
16 views

Make e-Mail optional on Woocommerce sign up

My site uses mobile login ability and that is our primary means of communication and the brick and mortar utilised this so we need to make it optional for users to enter email as we have a local sms ...
0
votes
0answers
11 views

Debugging JS errors

I'm struggling with this error and would appreciate some help. Wordpress with the MasterStudy theme and then MasterStudy LMS plugin. Elementor on top. Everything up to date. I have a caching plugin, ...
0
votes
0answers
7 views

User uploads image as "Featured Image" but WordPress resizes it?

I have a user with permissions of Author uploading an 800x238 image to WordPress as a Featured Image. When it's uploading, I can see that it uploads correctly: https://ygoprodeck.com/wp-content/...
0
votes
0answers
23 views

How to show Custom Post Type - Case Study using Shortcode & ACF

I have ACF Installed and I want to show Hyperlink and Thumbnail of specific Case Study which had my Custom Field Handle given so that value I will pass in page with Shortcode Parameter. So how to ...
0
votes
1answer
9 views

Help with my Post Interface [closed]

My Add/Edit Post interface just change and I dont know why. I am not sure which part I changed (or if I did change). I have a wordpress 5.6 both local and development server. This is the new interface(...
-1
votes
1answer
10 views

Undefined Variable on Responsive Announcments [closed]

I was looking for help as I have a "Undefined Variable" on line 168. Any help would be greatly appreciated. <?php /* Plugin Name: Responsive News & Announcements Plugin URI: http://...
0
votes
1answer
21 views

Broken wordpress site, non-working links and no access to wp-admin page

I was just handed a broken Wordpress site that I am now in charge of Administering (administrating?). EDIT: Since posting this, I have made some new discoveries about my issues. When trying to access ...
0
votes
0answers
16 views

WordPress CSS completely broken on IIS

I am not entirely certian what is causing the issue but CSS seems to be completely broken on my newly installed WordPress site, installing on IIS 10. Referenced page is jacob6223.net, haven't gotten ...
0
votes
0answers
11 views

Embed widget from external source (Zendesk)

I have a website and I'm using a Zendesk script to embed their form to capture customer data and send to their application. This embedded form has its own stylesheet and I've been trying to override ...
0
votes
1answer
18 views

Gutenberg: How to use RangeControl in the editor itself and make it work?

I tried to use the RangeControl component outside and in the block editor itself. But it looks like there are styles missing, and it does not work properly. Is there a trick to use it in the block ...
0
votes
1answer
15 views

What is default login process for sites hosted on WordPress? How do I view the source code? [closed]

I am trying to make a WordPress site such that customers can create accounts on my website and log in there. What is the default process for this, without using plugins? Is it the /wp-login.php ...
0
votes
1answer
20 views

Category-specific loop not working

This is my site, we're remodeling an nonprofit's website for class (it has no affiliation with the actual organization). On this page: https://dev-hopeproject.pantheonsite.io/news/ there is supposed ...
0
votes
0answers
11 views

Open posts in popup window

I'm looking to have all posts of a custom post type open in a popup or modal window instead of a new tab, and am having a tough time finding that functionality. The posts will be called via a button (...
0
votes
0answers
7 views

Disable single page for a custom post type based on a custom field

I have a custom post type that I need to basically return a 404 for if a user ever lands on it. I would like to just do something simple like hook into something before the single page is loaded, ...
1
vote
1answer
18 views

best practice for query string values - get_query_var always empty for my value supplied in query string

I'm constructing a form in my WP plugin. I need to specify which records to modify by supplying a value in the URL like so: https://example.com/wp-admin/admin.php?page=my_plugin-event-video-assoc&...
1
vote
0answers
12 views

Ajax load more posts with multiple tax query

I am trying load my posts based on which tax query user is selecting in that moment. Currently it only works for my posts where it starts from offset = 0 and continue until has no more posts. The ...
0
votes
0answers
7 views

Set priority to permalinks

I have a problem with the permalinks and I don't know where to take it from. Let's say i have this setup: page with the slug stack : site.com/stack a product with the base url stack : site.com/stack/...
0
votes
0answers
34 views

Is there any way to parse blocks inside widget area?

As widgets are outside post content, i couldn't find the way to parse blocks inserted inside widget area for ex. "sidebar-1" We use something like below for parsing post contents, $post = ...
0
votes
1answer
16 views

Wp_insert_term doesn't work from separate file with custom taxonomy

I have code that works good in main plugin file: if ( ! class_exists( 'Id_CRM_Contacts_User_Cpt' ) ) { class Id_CRM_Contacts_User_Cpt { function __construct() { register_activation_hook( ...
0
votes
0answers
17 views

Providin exception to Wordpress wp_nav_menu Custom CSS Classes

I use below code to remove unusued menu classes. function clear_nav_menu_item_class($var) { return is_array($var) ? array_intersect($var, array('menu-item-has-children')) : ''; } add_filter( '...
0
votes
0answers
11 views

WP Multilingual site not redirecting to default language using WPML [closed]

We have WPML setup and are not getting the home page to redirect to the English version. Home page is showing the base url without the /en/ suffix. Theme: Avada Any Ideas what can be the cause of this?...
0
votes
0answers
26 views

Wordpress SQL Prepare

i'm trying to adapt this code to also take in to account specific categories and custom post types, so it would give me select dropdown populated with unique custom field values, from a specific post ...
0
votes
0answers
11 views

Polylang wrong link in some product category archives page [closed]

I have a WooCommerce with PolyLang in two languages RO, EN. The main language is RO. On the product-category archive in the main RO laguage booth link are ok in the language switcher, but in EN, the ...
0
votes
0answers
14 views

Disabling a custom function on a specific cart item [closed]

We use Woocommerce Subscriptions and offer a 10% incentive for signing up - if we're running a sitewide sale (via Woo Discount Rules), we want the subscription price to only reduce the full product ...
0
votes
0answers
21 views

Image is displaying with the url of the image as well

So its displaying the image like i want it, but the url of image comes with it as well. Here is the code that i'm using.

15 30 50 per page