All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
11 views

Can we use WC_Products_Query to get products that matches a desired product name? [on hold]

I have a requirement such that: User searches for a product Any product name that has a match for at least one word of the search string must be returned It must be in the descending order, with the ...
0
votes
0answers
18 views

Wordpress main category with ghost categories

I wonder if there is any possibility to select a "main" category for a post, but also select "ghost" categories, so that a wordpress post only shows the main category but also appears on the other ...
0
votes
0answers
8 views

Search with filters

I want to create Three Filters in the search form with three different filters as (Tags, categories and posts). Is it possible to create those filters? If possible means how can I create that? ...
0
votes
0answers
7 views

share js objects between jquery scripts wrapped in anonymous function [on hold]

I am re-writing a web app to work in Wordpress. Currently, pages in the app loads one JS file containing a JS object for each "panel" in the page (usually 2 or 3) and a JS object for the page which ...
0
votes
1answer
21 views

User Meta Value not echoing despite Var_Dump Showing correct string

I am going absolutely insane with this one, I cannot for the life of me figure out why I am not receiving the string content. var_dump is outputting the correct result perfectly, yet the content for $...
0
votes
0answers
6 views

Jetpack: disabling Markdown module on specific page templates [on hold]

I use the Jetpack Markdown module in the Classic Editor, but I would like to disable it on some page templates. How can I do that? Thanks in advance.
0
votes
0answers
3 views

gvlogic condition on widget [on hold]

I am trying use GVLOGIC to show data into a widget. A code that would work inside gravity forms is not working in widget in spite of saying that would work wordpress everywhere. Can anyone help me ...
0
votes
0answers
13 views

Ultimate Member User Meta Value Remove [on hold]

3 Usermeta created by Ultimate Member Plugin.. _um_last_login form_id submitted _um_last_login this meta value stores user last login timestamp.. i was wondering is there any usage of it ...
0
votes
0answers
12 views

How to disable Gutenberg editor from Multisite Admin panel?

I recently Updated WordPress to 5.2.2 and I want to disable Gutenberg editor from network. By this way, I do not need to go into each sites and disable one by one. I have already installed Disable ...
0
votes
0answers
41 views

Icons are missing from Visual Editor

The Problem I've been grappling with this bug over several days now to no luck. When editing either a post or a page, all icons in the Visual Editor are missing: As you can see this, includes the ...
0
votes
1answer
11 views

How do I get dynamically populated (via Javascript) Gravity Forms checkboxes to validate

I have a Gravity Form where the user selects a Job from a dropdown and then one or more Shifts for that job from a set of checkboxes. Both fields are set as required. The checkboxes field appears once ...
1
vote
0answers
20 views

Visual editor keeps stripping my <a> tags

My first post, please forgive me if I'm doing it wrong. For some reason when switching to the visual editor WordPress will strip out my a tags. "Don't use the visual editor" isn't an option, I'm ...
0
votes
0answers
7 views

Is there a way to add an unlimited amount of image controllers?

Is there a way to add an unlimited amount of image controllers in the customize section ? For example, If you have one image controller setting with cropper, but you want to add several more ...
0
votes
0answers
5 views

Assignments submission plugin? [on hold]

im creating a tutoring website . and i want students to submit there assignments and experts can send a price for who posted that assignments and if the student accept the offer it will be signed to ...
0
votes
1answer
15 views

Creating a child theme: How do I find the template name of the parent directory?

I am trying to create a child theme for the Fitness Hub theme. I'm following this guide (https://developer.wordpress.org/themes/advanced-topics/child-themes/), when it comes to part 2. it makes it ...
0
votes
1answer
11 views

WordPress - Limit custom/specific user role to only have access to edit the contents of an Advanced Custom Fields Pro Options Page

I've tried a few role plugins already: Members, User Role Editor, User Role Field Setting for Advanced Custom Fields Pro (this doesn't apply to an options page--just ACF fields on their own), ...
0
votes
0answers
17 views

How to override prepended JavaScript files in child themes?

I'm trying to override from my child theme some JavaScript, which is in a parent theme's .js file. The file in question is not being loaded through a PHP hook, but rather from within another .js file (...
0
votes
0answers
12 views

Google Photos → Wordpress WITH EXIF data?

I'd like the timestamps on the photos that I upload into WordPress from my Google Photos to be preserved and displayable in WordPress. What am I missing? Whether I import photos I've downloaded from ...
0
votes
0answers
11 views

Plugin which show the end date of contest in summary and full post [on hold]

I want to make a wordpress website with contests. I need a plugin which show me something like this: Which says '15 days to the end of contest'. Is any plugin available to do this or only custom?
0
votes
0answers
9 views

Update and rollback WordPress plugin without WP Rollback

I know people always recommend WP Rollback but what if I'm using a premium plugin or theme. So, is below a good way? Copy the folder and files under wp-content/plugins/the-plugin-to-update and put in ...
0
votes
0answers
33 views

How to use get_blogs_of_user?

I'm using a plugin that is not built for multisite: Restrict Content Pro Group Accounts. https://docs.restrictcontentpro.com/category/1525-group-accounts Now, before it adds a member to a group, it ...
1
vote
0answers
24 views

Choosing a default page tempate (Classic => Gutenberg)

This code was working in the "Classic" era to set a default page template: /* Blank Page by default */ add_action('add_meta_boxes', 'blank_default_page_template', 1); function ...
0
votes
1answer
42 views

Dashboard of other languages gives 302 error

I have a website with multisite set to true. I can see all the pages regardless of the language, however, If I am on the dashboard, and hover over my sites, I cant see any of the dashboards of the ...
0
votes
0answers
8 views

Add new user role and allow only edit “Tags” of posts

I would like to add a new Wordpress role and assign to it the permission to only edit Tags of Posts. How can I do it? PHP code or Plugins are welcomed. Thanks.
0
votes
0answers
15 views

How to put a before and after with tags in a wordpress entry?

I'm trying to make two "before" and "after" buttons on each wordpress entry, but with related articles by tags. I have this code, but it doesn't work because it doesn't show me the related articles by ...
0
votes
0answers
12 views

Need help to write custom rewrite rules correctly

In my site I have a page with permalink http://dev.mysite.test/option/ and I pass it some values with query string, e.g.: http://dev.mysite.test/option/?value=100, how can I write a correct custom ...
0
votes
1answer
13 views

How to inherit custom javascript from parent to child pages?

I have a function I wish to use in 10 different javascript files (each are used on a different webpage). I was hoping to avoid copying/pasting the function into every .js file. The pages all have ...
0
votes
0answers
7 views

Page number stopped showing up at bottom of blog [on hold]

The page numbers to get to the other posts just randomly disappeared on the bottom of my blog page in wordpress. I'm using pagenavi and have checked the settings and everything seems fine. It seems ...
1
vote
2answers
37 views

Remove “Private” + “:” in title does not work

I would like to remove the "private" prefix for each post title. I found the filter here. I managed to removed the word "Private" but when I concatenate with " : ". That does not work anymore. I ...
-1
votes
0answers
10 views

How to show a custom field in the PDF invoice in woocommerce?

I created a custom field to get a text from the user when creating an order. using this code: woocommerce_form_field('message1', array( 'type' => 'textarea', 'label' => __('Gift Message'...
0
votes
0answers
5 views

Populate Dynamic dropdown from text within a description using cf7

I already know how to dynamically include a page's title on a cf7 form but I need to be able to populate a dropdown menu dynamically with content from text on the same page. Is this possible? and how? ...
0
votes
1answer
17 views

Wordpress json rest api displaying 10 categories only

Wordpress rest api for categories is displaying 10 categories only. how can i get all list of categories in the api. please help me out of this. Thanks
0
votes
1answer
16 views

Remove empty terms from array, sort alphabetically, update back to repeating field

I have a repeating field that stores text terms in an array, like this: [0] => [1] => NUC Lights [2] => Smoke Alarm [3] => Binoculars You'll note key A has no value, and they're not ...
0
votes
1answer
20 views

Adding toggle-able element after menu item

I've got this menu on my site: <ul id="menu-primary" class="offcanvas"> <li class="menu-item menu-item-has-children"> <a href="#">Parent</a> <ul class="...
0
votes
1answer
26 views

unable to edit any page of my wordpress website

I'm working on a website using ampps local server. when I try to edit any page this error occurs. Catchable fatal error: Object of class WP_Error could not be converted to string in /Applications/...
0
votes
0answers
25 views

Restrict child pages to certain templates

Supposing I have a page called Customers which uses a template named customers.php. What I would like to do is ensure that any child pages for pages using the customers.php template can only be ...
0
votes
0answers
23 views

Parse error: syntax error, unexpected 'new' (T_NEW) in /misc/41/000/204/381/9/user/web/ragami.net/wp-settings.php on line 219

/** * WordPress Query object * @global object $wp_the_query * @since 2.0.0 */ $wp_the_query =& new WP_Query(); how to skip this error ?
0
votes
0answers
17 views

wp-config.php keeps being reset to default

A few months ago, I migrated a wordpress website from a Unix instance to a Windows Server running ISS. The migration was pretty rocky but it ended up working fine. About a week after the migration, I ...
0
votes
0answers
9 views

Integrate Facebook Shop with Wordpress that did not use WooCommerce [on hold]

I'm getting stuck at integrating Facebook Shop into a Wordpress site which has been developed their products base on WP post type (specify type for product) and they did not use WooCommerce. I ...
0
votes
0answers
16 views

Getting error in webmail after send mail from contact form 7 [on hold]

I am getting an error in webmail after sending mail via contact form 7. But, there are no problem when I sent mail from gmail. I have been checked whole site by wordfence and no problem found. I used ...
0
votes
1answer
16 views

Can I Include author login in post class?

How can I include author nicename in post class by using post_class filter? I want to add author-AuthorLogin class in post class so that I can apply styles based on author name. Is there any way to ...
-1
votes
1answer
22 views

Creating a shortcode with a variable (Woocommerce)?

I'm new to PHP. I want to create a shortcode that outputs a user's order number, but I'm having trouble. All I know is that the order ID variable is "$order->get_id();"
0
votes
1answer
20 views

How to pass multiple custom fields as shortcode's parameters

I'm learning how to pass parameters in shorcode, I know the basic step after read through WP Codex. But for now, I have plugin come with custom fields and as the title, I want to know how to do it. ...
0
votes
0answers
12 views

Send POST request to Flask app from functions.php file

I have an endpoint on my Flask app that I can hit via Postman and it works fine. However, when I write the POST request in my functions.php file and trigger it via button press, my server returns a ...
0
votes
2answers
19 views

Display all product tags associated with a specific product category

I need some help writing a shortcode to display all product tags associated with a specific product category which can be displayed on any page. My problem is that I can display all product tags ...
0
votes
0answers
9 views

Visited Page Still Being Cached - Cache-Control Header Not Working

So I am trying to solve an issue that has been plaguing me and I can't seem to figure out the issue. I keep running into a problem where, if a logged out visitor visits my site and views a page ...
0
votes
0answers
28 views

wp delete duplicate entries of custom post types every 15 minutes

looking for some assistance. I have searched the usual sites but not come across this specific question and was wondering if anybody could help. I have a scrape system that collects data and saves it ...
0
votes
0answers
10 views

How to get Wordpress to respond to a GET request at the end of a Woo product page

I need to initiate an action on a WooCommerce product page if parameters are added to the end of the page. For example: https://somesite.com/products/some-random-product?some-parameter=true If this ...
0
votes
0answers
12 views

Change label text color in woocommerce [on hold]

I am new to using wordpress and woocommerce. I have been able to change the text for membership discount however the text colour is too light and I would like to change it to a darker shade. This is ...
0
votes
0answers
7 views

Automatically update woocommerce products after 10 minutes when they are published from frontend

Is there a function than can update a woocommerce product in 10 minutes after it's published from frontend? I'm asking because i'm running Rh frontend publish pro for users to submit products to ...

15 30 50 per page