All Questions

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

assign roles to users in custom drop down in signup form

I have made html signup form, in that i have added users role drop-down, while filling up signup form when i am selecting value from users role drop-down, its not getting updated in wp_usermeta table ...
0
votes
1answer
19 views

I want to show always 4 category boxes everytime in woocommerce

i am having problem in my website.i am using a shortcode to show a section which is show 4 rand category each time.i mean its changes each time reloads. now the problem is sometime its showing all 4 ...
0
votes
0answers
12 views

Elementor Breaks the page when custom shortcode is used

I am using elementor to design a page. When I use a custom shortcode to show few posts with featured image and author name and so on the page breaks with the error showing that "the_content" is not ...
0
votes
1answer
16 views

Group the events post in month+year format?

How to print upcoming events in the below format. June 2019 Trala Lala Wala May 2019 Trala Lala Wala my args array is $arg = array( 'post_type' => 'events-promotion', ...
0
votes
0answers
14 views

How to disable Caching of Iframe SRC caching on WP Rocket and Cloudflare

Scenario: I have a post page with iframe with a dynamic src with time limited token, example <iframe src="https://xxxxxx.com/?token=dynamic_time_limited_key"></iframe> The time limited ...
0
votes
1answer
19 views

Malware gdjfgjfgj235f [on hold]

recently i noticed with my sites are injected by this malware. Interestingly I was not even using this plugin and it was able to affect all my files, including .php. var gdjfgjfgj235f = 1; var d=...
1
vote
1answer
69 views

combine Code 1 with Code 2

Code 1 - uses wp_list_categories to list product categories in columns of x categories up to a total of y, with a link to view all categories if there are more than y. Code 2 - Later realising i ...
0
votes
0answers
8 views

Add Button quicktags Wordpress

I am also trying to add this button to "Quicktags" in wordpress. The button appears in "Visual" but not in the "text" toolbar can help anyone with this problem? Thanks :) function wdm_add_mce_button (...
0
votes
1answer
21 views

Array to string conversion on array_map

I'm using array_map to sort out an array with all of my _octopud_id's. var_dump($offices): Returns the following: array (size=500) 0 => array (size=1) 'id' => string '1382' (...
0
votes
2answers
25 views

images inside wp-content/ uploads/ are not showing up in my media library and uploaded using FTP protocol

Hello would anybody be able to help my situation? at this point I'm wondering if it is a database issue because when i try the alternative to drag and drop an image into my media library i get this ...
0
votes
0answers
10 views

Woocommerce: How to exclude some products with specific tag ID from Woocommerce REST API

I'm Working on a mobile app using the WooCommerce API and I need to exclude some products with a specific tag id from the /products endpoint. There no options on the docs on how to do this! just ...
1
vote
1answer
22 views

Get number of authors

I want to get the number of authors. I saw this and moved (all). I got number 0 or 1 but real is 3. What should I do?
0
votes
1answer
14 views

has_category() for parent category

Is there a way to make a condition for posts belonging to any sub-categories of a given parent category? Here is an example, assuming the following category structure: News FAQ 1) Installing 2) ...
0
votes
0answers
19 views

Domain not redirected correctly with Wordpress Multisite

My Wordpress multisite installation uses two sites: Site 1: www.myexample.com Site 2: blog.myexample.com In addition, I own a second domain myexample2.com, which I would like to redirect to the ...
0
votes
0answers
20 views

How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?

I'm not a novice web developer. I know how to use Python and Django at a beginner to intermediate level. I know my basic HTML5, CSS, and JS. I've been learning React.js through Scrimba.com as well as ...
0
votes
1answer
25 views

Show posts from WP Custom Post Type selected from a field in a metabox

Maybe, the question is unclear for you, but I will try to explain. There are two registered custom post types, song and album. I have a metabox on a Create an Album, in which I can select one post ...
1
vote
1answer
35 views

What does 'erase personal data' tool actually erase?

What does 'erase personal data' tool actually erase? User generated content (comments / posts/pages etc. if they can publish)? Keep all data except user's name in comments? https://wordpress.org/...
1
vote
0answers
31 views

How to delete 1000s of duplicated images in Wordpress?

We kinda have a wired problem that took me weeks of searching and testing, the problem is that while working on one of my client's Wordpress website I noticed that there are around 75k images in ...
-1
votes
0answers
12 views

Using a custom REST API in WooCommerce, the data from do_actions in content-product.php do not generate any output. Why?

I have WooCommerce v3.5.6 installed, and the code works as expected. But, if updated to any subsequent versions, all these do_action statements have no output over the REST API. do_action( '...
1
vote
0answers
28 views

multisite subdomain behind reverse proxy

I'm trying to run a wordpress multisite subdomain setup behind a reverse proxy to look like its sub directories. So the setup is like: www.mydomain.com/articles --> cms.mydomain.com www.mydomain.com/...
0
votes
1answer
14 views

Store metakey value as an array

How could one grab the post meta key of _octopus_id and store that as an array. Here is what I'm trying to achieve: Call the WP_Query and pull all the offices with _octopus_id Use the value of ...
0
votes
1answer
13 views

Post Taxonomy Value get from User Field Value

I have user field such as "gender and country" on register form (Created with ACF). Also I have post (wp default posts and CPT) taxonomies called "gender and country My member can create unlimited ...
0
votes
0answers
15 views

convert images and media url into blob url

Is it possible to convert the_post_thumbnail or the_post_thumbnail_url() into a blob url to use on the front-end of a wordpress website? I also need to add a vertical scroll with all the posts of a ...
0
votes
1answer
29 views

use value returned from shortcode as menu item

I have a menu that I created in Appearance -> Menus. One of it's items is the company phone number which is set in the theme customizer. I have a shortcode that will return that number: /* shortcode ...
0
votes
0answers
13 views

Cant determine why variations slow down Woo product pages

I have problems with Woocommerce product pages with 3 variation levels like this one: https://stream-tek.com/product/advanced-air-knife/ because it takes more then 40 seconds for page to load. Any ...
0
votes
0answers
26 views

Gutenberg - dynamically created element: how to set onChange?

having blocks with many attribues, I'm trying to optimize the code to write things just once. Because of this I created a PHP array used for default attributes in register_block_type() I pass it ...
1
vote
2answers
39 views

How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method

This method for @SE How would I get a taxonomy/category list inside a Gutenberg block? does NOT work for custom taxonomies, e.g.: wp.data.select('core').getEntityRecords('taxonomy', 'my-custom-...
0
votes
0answers
14 views

file_get_contents(.ics file): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request [on hold]

I'm trying to parse an iCal file from Google Calendars URL but it only works when I put the link as parameter. If I try to put a variable containing that URL as parameter it gives me the error: ...
0
votes
0answers
29 views

INNER JOIN custom tables - SQL Query

H, I am trying to get results from two tables with INNER JOIN in WordPress theme template file, but I don't know what's I am doing wrong. Please help me, here is the code below global $wpdb; $user_id ...
0
votes
0answers
11 views

Como ativar o plugin “Secondary Title” dentro do plugin “Epic News Element”? [on hold]

Tenho um problema. No meu projeto, eu tenho um plugin de módulos de notícias (Epic News Elements) e preciso inserir nele títulos secundários (Secondary Title plugin). Na documentação há várias formas ...
0
votes
1answer
3 views

Highlight active Admin Menu when added though add_menu_page

I added a direct link to a page in the admin menu with the add_menu_page function. Once I click on the link, the About page edit screen opens, great. The problem though, i want the About menu item i ...
0
votes
1answer
16 views

Can I get thumbnail of taxonomy?

<?php $args = array( 'type' => 'itineraries', 'child_of' => 0, 'parent' => ...
0
votes
1answer
22 views

WooCommerce – template_redirect if is_checkout AND order has been paid?

In my WooCommerce store I would like to redirect to a custom 'thank you page' after payment has been completed. I'm using this code: add_action( 'template_redirect', 'myfunction' ); function ...
0
votes
0answers
20 views

Woocommerce not creating downloadable product permissions in customer orders

Currently having a problem with Woocommerce not creating download links for the virtual downloadable products when an order is placed. This then leads to no link being placed in the email sent to the ...
0
votes
1answer
19 views

Check if someone is editing a post (this content is currently locked)

I'd like to create a kind of auditing. How can I check if an user is modifying an article? Is there a db query I can do to achieve this task? I've found the following solution but I wonder if there ...
0
votes
0answers
14 views

What is Wordpress methodology for using Composer-installed packages?

I just set up a composer.json for my site and added a MailChimp package by executing from my root directory composer require thinkshout/mailchimp-api-php The composer.json at root level is now: { ...
0
votes
1answer
14 views

Using Transients

I am new to the transient concept. But I am not sure about the efficient method to use it. I really liked it as it removed the duplicate queries that I had. I have set set_transient( '...
0
votes
0answers
24 views

How to make a custom search form with date range? (Using Timber)

I have to create a data range search for my site with two input (start-date, end-date). I'm using Timber and i have no idea how to do it. Here's my code in search controller. How can I implement this ...
-1
votes
0answers
18 views

WooCommerce Product Name Link

I'm trying to link the single product page from the Store, exactly from the product name. How can I do it? I've already tried to add functions to functions.php but none worked for me.. Thanks!
0
votes
0answers
15 views

Bedrock WordPress retro-porting to standard WP installation: is this allowed?

I am dealing with something never seen before: a WordPress website where there is not standard directories, and wp-content was moved in /app, all files was moved elsewhere and all seems to work ...
0
votes
1answer
28 views

Create short URL with auto 301 redirect

I found this post (Create additional short URL with custom field and 301 redirect) and tried to do this with a custom post type I created but it aint working and I dont know what I am doing wrong in ...
-1
votes
0answers
21 views

how to make a nav walker?

I have html like this <ul class="main-nav-list"> <li class="main-nav-list__li has-list" data-mb="quick-hover"> <a href="#" class="main-nav-list__link " data-mb="mobile-nav" title="...
0
votes
1answer
16 views

Custom taxonomy template list not working (404)

I have created a custom post type 'item': function mywp_add_item_post() { $labels = array( 'name' => 'Items', 'singular_name' => 'Item', 'add_new' => 'Add New ...
0
votes
2answers
22 views

How to store ACF custom fields data in a custom table

I am using the ACF Custom Fields plugin to store some info, but to my understanding, it is stored in the wp_postmeta table. Is it possible to store it in a custom table instead? So for example, the ...
0
votes
0answers
14 views

API POST to Quickbooks with OAuth

I have created a form on my website for the customer to fill, and I would like to use this data to create a customer in Quickbooks, I have the javascript API code functioning in vs code with node.js, ...
0
votes
1answer
17 views

How to loop custom posts that have an exact match in taxonomy terms?

I have created a loop to display programs. One of the taxonomies for each program is a grade or grades. Some programs are for 1st and 2nd graders, for example. I would like to display a div in my ...
0
votes
0answers
28 views

Get list of all existing meta keys [duplicate]

I'm using Custom Fields in my post type and I'm looking for a way to get a list of all existing meta keys. I know I can get all meta keys for a specific post with get_post_meta() but I need all ...
0
votes
0answers
14 views

How can i add button for install a plugin in theme

i want to add this type of button to install a plugin from theme directory so anyone have any idea ?
0
votes
1answer
20 views

How to Unhook actions/filters in within Class in plugin

I have a business website for vacation home rentals in which the WordPress theme has its own booking system for house bookings only and it has been great! I also, have Tour/Services (not Houses) also ...
0
votes
0answers
12 views

What is the optimal solution: WP Multisite vs InfiniteWP

My requirements: - 100 websites - All same themes and plugins and layouts - Different categories/pages structures - All custom domains - not sub domain/directory Priorities: - Efficiency in ...

15 30 50 per page