All Questions

Filter by
Sorted by
Tagged with
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
5 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
12 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 ...
1
vote
1answer
34 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
22 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
20 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
19 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
13 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
13 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
29 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
7 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
37 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
11 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
16 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
14 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
27 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
24 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
27 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
25 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
12 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
7 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
14 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
21 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
20 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('...
2
votes
2answers
29 views

Hacked website redirect, only on desktop, help with restoring it [closed]

This is my first post, I tried searching for similar problems, didn't find any that would fit my situation. Anyway. Recently my cousins website got hacked, I decided to take a look and try to fix it ...
0
votes
0answers
9 views

WP REST API returns empty posts despite entries in wp_posts

Using WP API to query posts. There are many entries in wp_posts, but the API always returns an empty array. Request: /wp-json/wp/v2/posts/ Response: [] Request: /wp-json/wp/v2/posts/3553 Response: { ...
0
votes
0answers
23 views

How can I display videos in wordpress archive page [closed]

I have a custom field and using Astra theme, how can I hide featured image and display correctly that videos in archive? (archive.php) <?php /** * The template for displaying archive pages. * * @...
0
votes
0answers
12 views

How can we Include Multiple Product IDs in a PHP Action [closed]

How can we include multiple product id in the if ($product->get_id()=="15757"){ add_filter( 'woocommerce_quantity_input_args', 'ts_woocommerce_quantity_selected_number', 10, 2 ); ...
0
votes
0answers
12 views

How can I use an iframe element as my header media?

I am currently using the twenty-seventeen theme, which allows me to display a youtube video on the homepage and images on other pages. Instead of a youtube video, I wish to display an iframe on the ...
0
votes
1answer
21 views

How to do store, retrieve and write attributes in the registerFormatType method in Guttenberg?

I'm trying to add a format that has multiple, independent attributes to a custom <a> tag. The attributes are href= and data-caption= and data-set= while I use custom client side JavaScript to ...
0
votes
0answers
12 views

Make “ACF V4 star rating field type” compatible for Advaced custom fields 5 [closed]

Hello every body i want to make this ACF 4 Star rating plugin compatible for ACF 5. Who can help me please. I installed the plugin but i can not see star rating field among other field types. This is ...

15 30 50 per page