All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

A function to add arguments to a taxonomy

I use a plugin that adds the taxonomy "Vendors" - but not with arguments I need to be able to use a layout designer (Avada-> Layouts) and assign that layout to all "vendors" I ...
user avatar
  • 63
0 votes
0 answers
19 views

Change my URL from https://www.domain.com to https://domain.com

I have migrated my site to Godaddy and Installed WordPress, but it get installed on https://www.domain.com on previous hosting it was simply on https://doamin.com. Now I am having problem as some ...
user avatar
0 votes
0 answers
11 views

Make unique url to unlock a post

Hi I try to make unique url This link will unlock a prenium post if a prenium account send to him this link . I dont find goo documentation to start so if you have any advice or doc (Sorry for my ...
user avatar
0 votes
0 answers
12 views

how to use nimble-API and Display data?

I want to get the contact resources displayed by doing Nimble API, but I do not know how these resources are displayed. How can I change the JSON code in PHP? [this is the link I check but can not ...
user avatar
  • 1
0 votes
0 answers
15 views

How to data add to table when update post wordpress? when we clicked!

Can you help me? I can get data in post_meta. But, When I enter to edit post. I want this to happen when I click. What should I do? add_action( 'updated_post_meta', 'fn_data_product_save' ); function ...
user avatar
0 votes
1 answer
13 views

get value from 'terms' table

so I feel like I am missing something very obvious, but I need to get a value from the database table 'terms', and it seems get_terms fetches from taxonomy table. I've tried get_term_by as well but to ...
user avatar
  • 3
0 votes
0 answers
21 views

Font styling in embedded Twitter feed

Apologies if I have missed the answer to what would seem an embarrassingly simple question! I have just added a Twitter timeline to the footer of my Wordpress site, https://www.logicmatters.net, using ...
user avatar
1 vote
0 answers
10 views

Is there any way to get all meta and standard columns for any WordPress object after searching based on meta key and value

I have a scenario where I have a meta key and value and a WordPress object name, I want to search based on the meta key and value and retrieve all details stored in db, for example if this is for a ...
user avatar
  • 26
0 votes
0 answers
13 views

Wordpress rewrite rule doesn't work unless post category is explicitly called in regex

I'm struggling to understand why WordPress is doing what it's doing in this situation, and I'm hoping someone can explain to me why the rewrite rule doesn't work unless I explicitly call a category ...
user avatar
0 votes
1 answer
14 views

How to redirect non logged in mobile users to page on same site?

I have seen many like this question (like How to redirect non-logged in users to a specific page?) but none have worked. this is basically what I've come up with but it doesn't work all the time and ...
user avatar
0 votes
0 answers
8 views

TranslatePress | secondary language category/sub-category not working correctly ```/%category%/%postname%/```

I'm using TranslatePress and using slug translate. now I'm having an issue with the single post URL, not redirecting correctly. my actual URL looks domain.com/fr/category/subcategory/postname ...
user avatar
0 votes
1 answer
67 views

reCaptcha doesnt appear in comment (manual or plugin)

I tried the following: https://www.quora.com/How-can-I-insert-Captcha-code-in-WordPress-theme-without-using-any-plugin https://codeforgeek.com/add-google-recaptcha-wordpress/ https://pluginsforwp.com/...
user avatar
  • 61
0 votes
0 answers
11 views

I found this code to be very useful, how can I change it to a text that display "Product versions and period of last update" rather than a button?

/** * Show a Live Demo button on single product page */ function isa_before_add_to_cart_form() { global $product; $url = get_post_meta( $product->get_id(), '_isa_wc_product_demo_url', true )...
user avatar
0 votes
0 answers
10 views

How to make a Product page without ordering and database

I am learning Wordpress currently so far I know how to design the webpage, but what I want to do next is to make a product page without ordering. What I want is the following: List all my products ...
user avatar
  • 101
1 vote
1 answer
35 views

Whitelist Author of Private Post

Does anyone know of a way to whitelist the author of a private post so they never have to enter their password to access their own post on the frontend? If they are logged into the site, there must be ...
user avatar
0 votes
0 answers
22 views

can't unzip file

i'm created import and export function, The Export function download zip file to my computer The Import function when trys to extract zip file it's fails and can't open zip file. when i create the zip ...
user avatar
0 votes
0 answers
9 views

Snippet to Format Elementor Text Box Throws Error

I am trying to add a snippet to a WordPress site running Elementor with the Code Snippets plugin. The goal is to add an underline to any hyperlinked text in an Elementor Text Editor widget (which ...
user avatar
  • 1
0 votes
0 answers
15 views

How to change request URL?

My website has a plugin that makes requests to url mydomain.com/wp-json/... If url contains ?lang=en request goes to mydomain.com/wp-json/?lang=en/... and drops 404 error "No route was found ...
user avatar
  • 1
0 votes
0 answers
14 views

wp_get_post_categories not work currently on loop.php

I'd like to design the category page for them. on this page, we have to show the last category of each post beside each post title. So I want to display the last category from each post, on the ...
user avatar
  • 155
1 vote
0 answers
22 views

Is there a better way to to make async API calls using the @wordpress/data module?

Before posting here, I posted this to both reddit (it was removed as spam for some reason) and the gutenberg github discussions but didn't get any response. If there's a better place for me to ask, ...
user avatar
  • 240
0 votes
0 answers
6 views

Search using ACF repeater

I created a repeater containing Q&A and I would like to develop a search field that looks inside the ACF Q&A repeater for the related result. Could anyone help me where should I start? Thank ...
user avatar
0 votes
0 answers
15 views

The WordPress wp_posts data table

We have a problem with our wp_posts table and are uncertain as to how to fix it. We recently migrated a site of about 13K users and about 5K posts. The apache log is collecting errors that read like ...
user avatar
0 votes
0 answers
9 views

How to Redirect Buddypress Directories To Login Page For Non Logged in Users

How to Redirect Buddypress Directories To Login Page For Non Logged in Users? I'm also using the Yuzify plugin. It gives a code for it, but it's not working on multisite. Can anyone modify this code ...
user avatar
0 votes
1 answer
37 views

Retrieve Data from Custom Endpoint

i created a custom webhook endpoint to receive data from moosend. The idea is to get the email address of a new subscriber and create a new customized coupon in woocommerce. I created an automation on ...
user avatar
0 votes
1 answer
18 views

Can I make a Customizer dropdown-pages list include private pages?

I'm using the following code to add a field to the Customizer where the user can select a page from the available pages on the site: $wp_customize->add_control( 'resources_page', array( 'type' =...
user avatar
0 votes
0 answers
12 views

Codeless random token generation to pass into multiple tracking links in a single page load

In domain my-nice-company.com (my WordPress) I want to include traking transparent images to some-tracker.org/1x1-transparent.png and some-other-tracker.info/track/pixel.jpg I want to pass-in a ...
user avatar
0 votes
0 answers
9 views

Replace matching words from a custom post type's post title with links in post content

I have a custom post type, which contains post with titles such as "dog", "cat", "house", "car". What is the practical way to match if those titles are existing ...
user avatar
  • 1
0 votes
0 answers
6 views

How to set value selected using select2 jquery plugin

In my file, i have small html bellow: <div class="dropdown-mul-2"> <select style="display:none;" name="dom767_options[all_posts][]" id="mul-2" ...
user avatar
0 votes
0 answers
11 views

Merge 2 product attribute terms

I have 2 similar product attributes and would like add the meta data(terms) to the other. So I would like to make a php function that : get list of all the terms from attribute 'reviewed_by' updates ...
user avatar
0 votes
0 answers
6 views

bp-custom.php is not working on a WordPress multisite environment. how to fix it?

I'm using the youzify plugin. It has an option: if you want to add a custom code, you need to create a file named bp-custom.php in the WordPress plugin root folder. And youzify provides some code on ...
user avatar
0 votes
1 answer
17 views

How to make an admin plugin menu page go full screen?

I'm building a plugin that contains a simple editor for a particular file format. This will only be accessible in the admin menu's for the plugin, no frontend access. I've started looking at the ...
user avatar
  • 141
0 votes
0 answers
11 views

Post incorrectly excluded when using "category__in"?

I have a wp_query using the following arguments. While I have the 'category__in' line commented out, I get all 3 results I should. Shown below with the IDs of the categories they belong to. Category ...
user avatar
0 votes
0 answers
32 views

manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme

As I added the manage_shop_order_posts_custom_column() hook in the functions.php file But the custom column post data not showing on the shop_order page. manage_edit-shop_order_columns Filter is ...
user avatar
0 votes
1 answer
30 views

$wpdb->get_results(...) with $wpdb->prepare(...) returns empty array despite correct query

My MySQL query is correct, but $wpdb->get_results(...) produces an empty array. Here's my code: $key = 'user-input-key'; $value = 'user-input-value'; $value = '%' . $value . '%'; $query = "...
user avatar
  • 83
0 votes
0 answers
24 views

want to show CMB2 metabox on woocommerce product data tab

Try to show CMB2 generated metabox on newly created woocommerce product data tab instead of woocommerce_wp_text_input text field function, also added an image that indicate what i want to achive. ...
user avatar
0 votes
0 answers
31 views

get_children() Archive Template

This is my first attempt at coding & I have come unstuck with the wp_query loop integration. I just want to build a template for a page that will check for children and list their respective ...
user avatar
  • 1
0 votes
0 answers
11 views

Build Clickable Link Using Multiple Attributes

I am trying to build a function for WordPress (running Elementor, if that matters) that will concatenate 3 items to build a URL, then display that URL in a link that will open in a new window. The ...
user avatar
  • 1
0 votes
1 answer
9 views

How to show or hide all payment methods on cart screen? [closed]

When you add a PayPal payment method to WooCommerce, it will display a PayPal button on the "View Cart" page. If you add Stripe as a payment method, you must wait till you are on the "...
user avatar
  • 282
0 votes
0 answers
8 views

Restrict posts to customers with complete WooCommerce orders only

I have a couple of custom post types (zoom meetings) that I need to be only accessed by users who have "completed" orders in the backend. Any workaround on this? Can't find it anywhere.
user avatar
0 votes
1 answer
32 views

WordPress default gallery pagination when in page (is_page)?

It seems I have found the way to make WordPress default gallery pagination to work and to have control over URL forming: Pagination with WordPress default gallery? But when gallery call is in post. ...
user avatar
  • 11
0 votes
1 answer
19 views

Wordpress Deployment on a blog site with 1000 blogs live [closed]

How do you deploy WordPress for this use case? You have done some customisations on WordPress, WordPress themes folder, and did some settings change in a plugin (that plugin stores the settings in DB)...
user avatar
0 votes
0 answers
16 views

merge 2 product attributes to use in a filter [closed]

so i have a few product attributes: "review_name_1" and "review_name_2" wich are website names of product reviews. And i would like to create another attribute review_names, but ...
user avatar
1 vote
1 answer
20 views

404 error comes up when I go to wp-admin after first installation [closed]

I just installed wordpress for the first time. When I go to mywebsite.com/wp-admin a 404 website error comes up. I went through the routine of changing the plugins and themes names although I never ...
user avatar
  • 11
0 votes
0 answers
11 views

wp_schedule_single_event is set correctly but sometimes not fired

I have a strange issue with my plugin. I have custom statuses in WooCommerce. My plugin changes order status after 15 min after order creation. Here's code of the plugin class This code works almost ...
user avatar
  • 1
1 vote
1 answer
26 views

Is there a JavaScript equivalent of get_post_field?

I recently installed @wordpress/hooks so that I could use applyFilters on the react side of my plugin, but I'm looking for something for get_post_field as well. I haven't seen it in any of the NPM ...
user avatar
1 vote
0 answers
17 views

Wordpress Loop and $post

I decided to take a closer look at how WP works and ran into this question. I see that when WP is loaded, the wp() function is triggered, which will parse the request and get data from the database in ...
user avatar
  • 11
0 votes
0 answers
14 views

How to send woocommerce emails in multiple languages

I am relatively new to wordpress and I have been stuck on this issue for about 4 days. I am trying to make it so that emails sent by woocommerce when order is completed are sent in the language set by ...
user avatar
  • 1
1 vote
1 answer
17 views

Remove Body Classes

I need to remove specific body classes added as a comma separated delimited list to a custom field input field like this wp-custom-logo, single-post, postid-28, single-format-standard, logged-in, ...
user avatar
0 votes
0 answers
6 views

Change image data durgin upload

I try to change image filename and image meta during upload to media library. I have a problem with create unique filename hence, a bad slug is generated. Also, during upload, file uploaded by this ...
user avatar
  • 1
0 votes
0 answers
11 views

I need some advice on how to include custom js animation in Wordpress [closed]

I created a very long hero scroll animation as well as the Nav menu on top for a client, now he wants to implement it in WordPress. The animation includes HTML structure and content. Additionally, ...
user avatar

15 30 50 per page
1
3 4
5
6 7
2252