All Questions

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

Job and Employee Performance Tracking with Product Safety

We are looking to connect a WordPress site to our database where an employee can scan an order barcode with an RFID scanner that was generated from our database and have the WordPress site query the ...
0
votes
1answer
17 views

Private Page View Counter

Is there a way to see the number of times a page has been viewed from the WP page/post lists on the dashboard? I don't want it to show publicly. Any thoughts appreciated.
0
votes
0answers
11 views

pick up day for woocommerce products with email notification [closed]

I searched the web for a kind of plugin or code that suits our need. We have a local food store and we want to sell products with an online shop. The ordered products can be picked up in the local ...
0
votes
0answers
11 views

Accessing wordpress tool in local MAMP Site

I created a Wordpress website locally using MAMP. For weeks I was able to get to my website and continue creating it by clicking "start servers" and it would open the MAMP page and I would ...
0
votes
0answers
12 views

Precheck fields when I add a new post

Precheck fields (like categery or custom fields) in new post based on user id. Its possible to make this?
0
votes
1answer
21 views

Rename a folder via HTML POST request

I am trying to rename a folder in the uploads folder if an HTML form is submitted (used to edit entry names). This following code is what I have so far but it isn't working. if(isset($_POST['...
0
votes
0answers
16 views

Can I load the same composer package twice without conflict?

So, I'm running mrclay/minify library on my theme on WordPress to minify all the CSS and js files to boost performance. On the website, I use the W3 Total Cache plugin so it takes care of everything ...
-1
votes
1answer
35 views

How to expire guest users after 1.5 hours logged in?

I want to pre create a table of users 1-200 Then after login for the first time it Edited to be further explained & described: I'm trying to issue access to all pages for a guest user with a ...
0
votes
0answers
11 views

Links to CSS and JS change based on page you're visiting

I have a multisite setup. One of the sites is having an issue linking to the stylesheet and JavaScript resources. For some reason, the URL to those resources add the page url to the link. For example, ...
0
votes
1answer
12 views

Disable Sale price woocommerce specific categories product [closed]

Looking for a way to remove the sale price from woocommerce specific categories product. This code work for all product. but i need for woocommerce specific categories product. function ...
0
votes
1answer
12 views

What sense makes medium_large_size_h => 0?

WP Version 5.4.2 There is an image size definition of medium_large with size_w = 768 and size_h = 0 - You can find it near line 530 of wp-admin/includes/schema.php: // 4.4.0 'medium_large_size_w' ...
-1
votes
1answer
24 views

500 error after upgrading from 5.0 to 5.4 and adding empty functions.php

I've finally managed to upgrade a WP site from v5.0 to v5.4. The only issue left is when I create an empty functions.php file I get 500 error. Does someone have an idea why is that? Thanks. Update: My ...
0
votes
1answer
16 views

Empty taxonomy items for CPT in admin grid

In admin grid for post taxonomy, if I'll click on "Items" link, I'll get all post, associated with this taxonomy /wp-admin/edit.php?category_name=test. But this won't work for taxonomy for ...
0
votes
0answers
13 views

ACF Flexible in TCPDF

So, i need to display Flexible content in TCPDF, i have my Flexible content fields: if( have_rows('levels') ): while ( have_rows('levels') ) : the_row(); if( get_row_layout() == '...
0
votes
0answers
8 views

How do I add and display all the colleges(all categories and streams ) present in my country in grid/card format?

I'm creating an website for a client, the purpose of the website is to take the marks of a high school student and display the top colleges in the stream the student is interested in. I need to create ...
0
votes
0answers
12 views

Pagination for custom categories template

I'm a newbie with wordpress theme creation. I want to create a custom category.php file, I've implemented the loop and it will display the last 8 posts. I have some fake posts to test if all works ...
0
votes
1answer
21 views

Adding an item to an anonymous array inside a filter?

I'm trying to add a user_role inside the ATUM stock management plugin. Currently it's only visible to admins, while I also want to add shop_managers. But I just can't succeed in adding it successfully ...
0
votes
2answers
24 views

Adding span tags to post titles using regex

My basic titles are something like Part One: Part Two And I'm trying to end up with something like this using the colon as what I find in the regex: <span class="one-class">Part One:&...
0
votes
0answers
20 views

Hide Approved status for certain users in users list

In the list of all users in wp-admin, i would like to hide the “Approved” status for certain users. These users only need to see “Pending” status to accept them. I didn’t find any plugin to make this, ...
1
vote
2answers
28 views

Problem with add_rewrite_rule

Been trying to re-map the following /test-sale-yacht/comfortably-numb-262749/ /test-sale-yacht/?yacht_name_id=comfortably-numb-262749 After some testing in a regular expression tester I've put the ...
0
votes
0answers
16 views

Add an attribute to the root from functions.php with add_filter

I followed this link. First thing I did was to add my dark-mode switcher, add JS to handle it and edit my CSS accordingly. Thing is, I didn't exactly do that, I used the possibility to have a global ...
-1
votes
0answers
18 views

How to Include “product short description” into new order emails only for admin? [closed]

I am trying to display product short description in the new order email received by admin. I have tried to add the below in to email-order-items.php but still no luck. Can you please advise is the ...
0
votes
0answers
20 views

How to handle wordpress sso authentication with gatsby js?

I have a working wordpress setup with sso login, when user try to logged in he is redirected to another website to login and redirect back to the main site if successful. I want to use gatsby js as ...
0
votes
1answer
32 views

How to disable recaptcha v3 except contact form 7 pages

Contact form 7 is loading reCaptcha v3 scripts on all the pages of the sites which is making the website slow. So i was using the below script which was working fine before two weeks from now, but now ...
0
votes
1answer
36 views

Trying to add some custom text into Wordpress Post title via function.php

I need to add a custom text in wordpress Post title dynamically which I'm trying to add via this code in function.php Following code is not working add_filter('the_title', 'new_title', 10, 2); ...
0
votes
0answers
12 views

Sync Woocommerce Product Status with ACF

I have 2 websites, which use the same products/categories and stuff. On both, there is a custom field - "Display on Website", which is a True/False ACF Field. That one should be synced to &...
0
votes
0answers
15 views

Cross-Domain SSO for 2 WordPress-Instances with JWT

Hello dear community members! I am currently experiencing a problem, which posts in here, even if they are slightly familiar with my problem, and a lot of information from other good sources (OWASP, ...
0
votes
0answers
13 views

get_template_part() break bootstrap row columns layout

I'm having some trouble to get my boostrap layout working in wordpress. I want to show some posts on a single row with a loop that show the content inside a col-8 and another loop that show the ...
1
vote
1answer
24 views

Add a CSS class based on categroy id to archive pages

How can I add a css class based on categroy id in archive pages body in wordpress? I want to style each category page different
0
votes
0answers
33 views

How To Displays Sub Category Posts on The Parent Category Page?

I have one parent category underneath, there are two sub categories. Prent Category: Windows: example.com/windows/ Sub Category: Multimedia: example.com/windows/multimedia/ Browsers: example.com/...
1
vote
0answers
20 views

How to display a Ninja Form on the Wordpress admin pages

I am creating a Wordpress website where I would like to display a specific form on an admin page which has the ability to store form submissions. I have chosen Ninja forms, but I am open to other ...
0
votes
0answers
8 views

Frontend custom field Upload file [closed]

i want Code for update post in custom post type (shop_order) i have custom field for upload file in this post type i need update this field form frontend ( upload file form frontend to custom field in ...
1
vote
1answer
31 views

Gutenberg get withState variable in save function

I'm not very familiar with React and Redux. I have a problem with Gutenberg to get the value of the withState variable within the save function. Here's my code: edit( {attributes, setAttributes, ...
0
votes
0answers
11 views

ACF Gallery with Isotope filters

I'm trying to achieve a filtreable gallery taking custom categories for every media attachment. I'm using the ACF plugin and Isotope. I managed to show the filter and to display each category to every ...
0
votes
1answer
17 views

How to change the background color that appears at top when we pull down a website on mobile device?

The website is https://samanthayardley.com/ In the top there is a bluish rectangle, that comes when we pull the site down to refresh. How can that color be changed?
0
votes
0answers
8 views

jQuery - On 'removed_from_cart' event to hide Proceed to Cart Button

I have a custom mini-cart running on mobile which so far runs great. The issue I am having is that when the user removes the last product from the cart and it empties, the Proceed to Cart button ...
0
votes
0answers
30 views

WordPress URL requests have suspicious query strings attached in logs

I have a simple Wordpress site. Unknown query string is appended to few requests by Bing and Google bots daily. In site's Apache access log, there are few entries every day like below: 157.55.39.119 -...
0
votes
0answers
11 views

How to paginate comments with wp_list_comments

How to paginate comments using 'per_page' and 'page' arguments, some how like 'paged' argument for WP_QUERY works. I want to list comments passing arguments somehow this way: $curr = max( 1, ...
0
votes
0answers
7 views

Woocommerce Filter Table biy price role

I am currently using two plugins in my store WooCommerce pricing by user role WooCommerce Dynamic Pricing & Discounts is there a way to make a table for me to filter product prices by user role?
0
votes
0answers
11 views

Cart API created shows a same product for all logged in users woocommerce

We are creating Cart APIs for react APP.The cart shows the same product list for all logged-in users in woo-commerce. Tried with different plugins too. function get_cart(){ if (defined('WC_ABSPATH')...
1
vote
1answer
11 views

When Wordpress Default table, Echo Success. When Plugin Table, Echo Blank

When I used this code, the result/echo display as I wanted. <?php $user_checks = $wpdb->get_results( " SELECT ID, user_nicename FROM $wpdb->users " ); foreach ( $...
0
votes
1answer
20 views

Shortcode result appears above page content

Hi there I'm having troubles with some shortcode because it's result appears above the page content when it should appears instead the place where the shortcode is placed. This is the shortcode code......
0
votes
1answer
31 views

Display a custom name when the user has no name settle in his account

I'm creating a code that shows the First Name for logged in users, using a shortcode, but I noticed that if the user has no name settle, it will display a blank space. How can I set a custom name to ...
0
votes
0answers
6 views

Show WooCommerce catalog and cart totals on one page

Is it possible to show all the catalog of my WooCommerce store and below all the content of the cart page? I was able to do it (with a custom page) but the shipping calculator doesn't work. Thanks!
0
votes
0answers
16 views

Help with creating a blog

I am trying to create a blog, MemoriesOf.website, where users can share their memories of something, someone, some event, etc, with other users. There will be a widget with a dropdown, a text box, a ...
2
votes
0answers
27 views

WP WPQuery, not running properly in WP CLI

I'm running a simple query just to find simple WooCommerce products, here is the query which works fine in the header of the site: $args = array( 'post_type' => 'product', 'posts_per_page' =...
0
votes
0answers
11 views

Sidebar not displaying (theme development)

I'm developing a theme via an online course and I can't get the sidebar to display. I've used the hook widget_init and the function is being called because I can echo text out. Index.php is correctly ...
0
votes
0answers
20 views

Show data in shortocode obtained from a function

//Hello, I need a variable $ custom_field obtained from a text through a form, pass it to my shortcode, how to do it? I have been with this for days and could not take this variable to my shortcode . ...
0
votes
0answers
15 views

PAIN. Comments Pagination

Sorry for flame, but i wasted 7-12 hours trying to understand how comments pagination works.... Never thought that simple step will take that much with WordPress :'(((( i output comments in my theme ...
0
votes
0answers
14 views

HTTP Header Authorization is disabled wordpress

Im using PGS Woo API for native mobile app script and i tried to install everything. but im getting the error "HTTP Header Authorization is disabled". I almost used all the solution in ...

15 30 50 per page
1
5 6
7
8 9
2094