All Questions

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

WooCommerce replace product edit screen thumbnail

I am currently using external image sources for my products on WooCommerce. So i would like to replace the default thumbnail / image across the site. I have managed to do this everywhere with the ...
0
votes
0answers
10 views

remove_filter with function inside [duplicate]

I want to override this filter to return number 5 instead of that variable This is set in parent theme add_filter('drile_loop_product_variable_color_number', function() use ($number_color_swatch){ ...
0
votes
0answers
8 views

WordPress + Microsoft Office 365 / Azure AD plugin detected the error please share the idea to fix the issue [closed]

Am having the below error on the WordPress site while using the office365 plugin detect the following errors, Please share the knowledge to fix this issue. Plugin version: 11.12 WordPress version: 5.3....
0
votes
0answers
8 views

WooCommerce REST API, edit order rows [closed]

I have read through the entire WooCommerce rest api documentation, but i have not found anything about editing order rows on an excisting order. I want to change quantity or remove product totaly from ...
0
votes
0answers
13 views

I cannot get an Advanced Custom Field code snippet to work - and ACF support say it should work

I am trying to get the below action to display on an archive page on my site via Code Snippets: add_action( 'woocommerce_after_shop_loop', 'test_text', 42); function test_text() { the_field('...
0
votes
0answers
12 views

Woocommerce error on admin ajax search product: Unknown column '' in 'where clause' [closed]

When I want to add products to a manual order in Woocommerce, the product search returns "no matches found". I looked at the logs and I found this error seems to be culprit. I searched the ...
0
votes
0answers
11 views

Which database tables do I need to import?

So I am re-building a client's WordPress website. It's a niche news site with thousands of articles. It's so messed up that simply cloning it and applying a new custom theme won't work. The media ...
0
votes
0answers
7 views

Creating Conditional Fields in Elementor Custom Widget [closed]

How are conditional fields or field groups created in Elementor? I've not found anything in the documentation regarding conditional fields for widget development. A simple example of what I'd like to ...
0
votes
0answers
7 views

Is it possible to symlink the uploads folder to a different location on the server?

It seems there are a few posts like this one, but not exactly like this one...so here's the question. My site: /home/userfolder/public_html/ The uploads folder for wordpress is in /home/userfolder/...
1
vote
1answer
31 views

Vimeo froogaloop

Very much a newbie here, but I'm trying to use this idea to disable forward seeking in Vimeo clips embedded on a Wordpress site To my functions.php I've added function frogaloop_scripts() { ...
0
votes
0answers
6 views

Woocommerce payment based on cart value & user-roles [closed]

I'm trying to filter payment method in woocommerce. My conditions are as follows. Only Verified Customer able to use COD Minimum $15 for COD Payment I tried this code: function filter_gateways($...
0
votes
0answers
13 views

I want to reorder & filter the custom fields on the admin screen

I am using custom fields for an unpublished page to hold all kinds of data for my site. It works fine except that in the admin page, they're ordered by their meta_id when I want them in order by ...
0
votes
0answers
6 views

Product and Category Translation [closed]

I build wordpress Woocommerce Website . I use Loco Translation and Polylang (free Plugin) together for translations But Translation for Product and Categorie not available . is there any idea . if not ...
2
votes
1answer
43 views

My WordPress Blog sends malicious traffic to other sites [closed]

I'm running a wordpress blog on a Compute Engine VM on Google Cloud. A few days ago, I received an email from Google telling me that a potential violation of their Acceptable Use Policy has been ...
0
votes
0answers
8 views

wordpress file upload from direct directory not working

I want to upload files from direct directory. But in my codes it will open media library then select files to upload jQuery('#t_pdf').on("click", function(){ // alert("got it"); ...
0
votes
1answer
24 views

Passing the name of selected color from the custom <ColorPalette/> component to `render_callback`

I have a custom block with the ColorPalette component. In this component, I have an array with several colors to choose from. The ColorPalette component only passes a color value. I would like to pass ...
0
votes
1answer
25 views

modify menu item links dynamically

on our wordpress site we use utm_source in the querystring to determine the campaign that brought a customer to our site. I need to dynamically add the passed utm_source from the initial page to all ...
0
votes
1answer
20 views

page shows short code not output

Written the following code in a custom file inside the theme folder and called it via functions.php but at page [product_first_img] shows shortcode text, not output. function gal_first_shortcode($atts,...
0
votes
1answer
16 views

Wordpress error: Options page Setting_ not found in the allowed options list

I don't really know what to do now. :/ I tryed this: add_action( 'admin_init', 'Setting_' ); And this is my strings and form setup: function Setting_() { register_setting( 'options', '...
0
votes
0answers
16 views

Re-arrange the Woocommerce checkout page layout

I’d like to make some minor changes to the checkout page, mainly re-arranging sections and where they appear. For example, I might want to show the order review in a separate column as opposed to ...
2
votes
0answers
35 views

Is there a core Sortable component in Gutenberg?

I managed to somewhat replicate the product gallery metabox from WooCommerce in Gutenberg using the third-party react-sortable-hoc component. As it seems that this component is no longer supported, I'...
1
vote
0answers
9 views

how to know when the user is in specific part of the website and when he leaves that part and display the data in the admin dashboard

I want to display for the admin when a user visits a page and when he leaves that page the page is for example test.test/my-dashboard. and it's only available for the logged in users. the admin knows ...
1
vote
0answers
20 views

Wordpress Query is taking more then 20 second and stuck on creating index

Hi I need help with below query this query takes around 20 second and when more then one is executed then server CPU usage hits 100% and server stop responding. here is the query from process list. ...
0
votes
0answers
12 views

WOO // PAYPAL disable payment method results in Fatal error [closed]

i have an incompatibility with two plugins. there I need to disable the PayPal quick check out if a product from a special category is being bought. this works perfectly fine from a frontend ...
0
votes
0answers
11 views

Creating a User-Adjustable chart in Wordpress

I am new to WordPress and I need to create a 'calculator/chart'. I have an excel file with a chart whose values are pulled from different tables with separate formulas, each table having its own set ...
0
votes
0answers
17 views

Is it secure to copy a database from a hacked server?

Is it secure to copy the database and uploads directory from an old hacked server to a new server or may they be infected? I'm not sure what was the attack type but it will save much time if it's ...
1
vote
0answers
9 views

Set different custom menu items for different user roles

I have added some custom menu using add-menu_page and it is working perfectly with the default administrator admin bar. But when I log in to different user roles, they are not showing. My question is ...
0
votes
0answers
39 views

How to get the custom page get_permalink?

I have create two a custom page called page-blogs.php and page-blog-content.php. In the page-blogs.php I am displaying my all the custom blogs post and page-blog-content.php will display the blog ...
1
vote
0answers
12 views

Can comments by a logged-in user be displayed at the top?

EDIT: I answered my own question! I was able to do this using 3 lines of CSS - thanks, flexbox! leaving this here in the hopes that it helps someone else someday :) .comment-list{display: flex; flex-...
0
votes
0answers
18 views

Two categories in permalink with both posts

I'm wondering if it is possible to achieve this goal: I have two different categories I want to show in an archive page, both posts for each category. My question is: is it possible to have a url ...
1
vote
0answers
17 views

How to figure out redirection and contents in hybrid solution containing word press content and legacy code (ASP.net)

I have legacy solution(ASP.net) hybrid with wordpress content, I have access to my ASP.net code base but not wordpress content. How can I figure out which section in my site is served through ...
-1
votes
0answers
21 views

Best and Simple way to add Multiple CSS files and Files folder in WordPress

I have found an excellent way to css in wordpress theme. You would see this very easy step making your efforts very simple. You need only to use these method very simply. <?php /** * ...
0
votes
1answer
28 views

Ordering posts by anniversary using only day and month

I defined a custom field named crimedate using standard date format Y-m-d. I defined the filters to make ordering by this date work in the post list of the backend, which works fine. Now I need the ...
0
votes
2answers
27 views

How to distinquish wordpress served links from non-wordpress served links

I am working on a legacy code where part of the website uses WP and other part ASP.net etc. Is there an easy way to tell me what content is coming from WP vs Non-WordPress? Since the codebase is large ...
0
votes
1answer
28 views

How to properly enqueue jQuery knob on Wordpress without conflict?

I'm building a plugin and I want to use jQuery Knob but it seems like using this method: plugins_url( '/assets/js/jquery.knob.min.js, . . . . . Have conflicts with other plugins? How to convert it ...
0
votes
0answers
13 views

Postcode/Address Validation doesn't update shipping method check-out [closed]

We are working on a new webshop and also with a paid WooCommerce plugin called: Postcode/Address Validation by SkyVerge. We allready contacted support but no response yet and we don't have much time ...
0
votes
1answer
26 views

do_action won't work in ajax callback

I want to perform some actions when ajax tasks done successfully. For instance, if the item added to the cart, I want to send an email. Also may perform a few more actions. Setting up do_action('...
0
votes
0answers
12 views

Does single webpage do not need navigation to create a slug in permalink?

I have concern about the permalink in my working project do i need to create a slug for the permalink in navigation. Your answer will highly appreciated. Someone help me stock in
1
vote
1answer
40 views

Filtering posts from different categories into different section by doing WP_Query only once

I am trying to create a custom homepage with multiple categories section. I know this is possible with WP_Query, but i don't want to make multiple db trips. I want to query posts (say 5 each) from ...
0
votes
1answer
13 views

Show testimonials based on post category matching product name

I have a template section that displays testimonials. The testimonials have been set up as a post type and will be given categories to match product names. Here is the testimonial section: <div ...
0
votes
0answers
12 views

get_categories() retrive post_tag instead category

I want to rewrite my category to a specific URL. but I get post_tag instead of category when I use get_categories(). Here my code add_filter( 'category_rewrite_rules', '...
0
votes
0answers
17 views

How do you run code on a specific page without missing the init hook?

The earliest that functions such as get_permalink or is_page are available is parse_query (afaik). Then I thought, ok, clearly, I can't say if( is_page('myPage') ) { add_action( 'init'... // because ...
-1
votes
0answers
10 views

display images on my cpanel email [closed]

is there any way to display uploaded image in our mail content in cpanel emails ? I created a online application form with picture file upload field but i cant view the picture on my emails from ...
0
votes
0answers
7 views

Is there any WordPress plugin with conditional output message based on the filled data? [closed]

I have 2 columns in an Excel sheet the 1st column is a user name (which is unique) and the other 2nd column is the user's promo code that he will use later (Offline in local stores) So my question is ...
0
votes
0answers
20 views

shortcode to display specific recent posts

I'm trying to create a shortcode to display the top 6 recent posts. The shortcode has to be able to capture a true/false attribute of today though I don't necessarily need this to be able to activate ...
-1
votes
0answers
9 views

Webpage not loading appropiately on workplace network

I have been working on deploying this webpage for educational purposes at my institution. However, when I try to access this webpage with the devices FROM the institution, the webpage doesn't display ...
0
votes
1answer
15 views

Is it possible to add a dynamic link in the main navigation in a child theme

My client would like to have a link to the most recent post in the main navigation, but still be able to manage the navigation through the dashboard as usual. I did not find a plugin that will do this ...
1
vote
2answers
23 views

Site searches by Python for non-existent assets

I've recently started paying greater attention to my 404 errors in order to clean up what I can and improve my site's SEO and ranking, and have noticed something that I don't understand. In my 404 ...
0
votes
1answer
21 views

I imported an restore an database and It shows #1067 - Invalid default value for 'user_registered'

My database tables become corrupted so for fixing them I restored data and It shows an error #1067 - Invalid default value for 'user_registered' how can I fix it.
0
votes
1answer
14 views

List of all authors avatars

I'm looking for a way to retrieve all authors with their avatar. I know there is a way to get an authors avatar but I want to get all avatars of all the authors :) echo get_avatar(get_the_author_meta('...

15 30 50 per page