All Questions

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

Dropdown Menu Still Not Working

I do not mean to be rude by but there was an issue from last week that a fellow user attempted to explain without being fully clear and just left it hanging: Dropdown menu problem on homepage only? I'...
0
votes
0answers
3 views

W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove

I used to have the "This site is experiencing technical difficulties." error message and went to CPanel to change the wp-config file and change the WP_Debug false to true but it's showing more error. ...
0
votes
0answers
7 views

Cron job -many duplicate posts

i have news aggregator website and have many sources need sometime to update in one minute maybe 7 new posts i make more cron jobs in cpanel every minute,every two minutes,5minutes but problem is ...
0
votes
0answers
5 views

How to group custom posts in admin menu based off taxonomy/postmeta

I created a custom post type named cars and I am trying to find a way to display the posts in my admin menu where it will group the posts based off either taxonomy or postmeta by car manufacturers, ...
0
votes
0answers
5 views

woocommerce pagination with custom query using wc_get_products doesn't work

I use the function wc_get_products to get the products I want. $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $ordering = WC()->query->get_catalog_ordering_args(); $...
0
votes
0answers
6 views

Send a email base on a taxonomy term

I like to have a email send if a custom post is created/updated if it has custom taxonomy term. The here is the CPT, taxonomy and term. Custom Post Type: Call Custom taxonomy: call_type Custom ...
0
votes
0answers
16 views

Connecting Wordpress with an External API

I need insight into connecting a Wordpress with an external API. This is the expected action needed to be carried out. A user tries to search on the Wordpress with four different forms fields (...
0
votes
0answers
8 views

retrieve thumbnail id from best selling product in category

The below is just an overview of functions etc ive used to get the resulting variable $image. The code gets the manually set thumbnail and $image is used to display the thumbnail along with taxonomy ...
0
votes
0answers
6 views

Conditional display of blocks

I am looking for a solution to conditionally show specific blocks on a page depending on what the user clicks. I have for example a long page with a lot of blocks showing product reviews. I would ...
0
votes
0answers
9 views

add image uploader field for users without plugin

i have made signup form in custom template. I'm trying to allow users to upload a profile image on their user profile editing page, thanks in advance. kindly help with code step by step. i have ...
0
votes
0answers
7 views

Why are my fields not saving to the settings API

So I create a settings page on my Wordpress site, yesterday it was working fine but for some reason now when i click save none of the values are being saved? Are there any issues with the below code? ...
1
vote
1answer
9 views

Remove block styles in the Block Editor

The Block Editor recently introduced block styles as seen below: How do we remove these?
-1
votes
0answers
20 views

Allowing Only One Registration Per Device

I want to make a option that one device can register only one account. i search plugin/tutorial but i found nothing :/ Is there any option for make this happen?
1
vote
0answers
11 views

Woocommerce custom endpoints

Currently, I'm an android developer(Java) and trying to add some custom endpoints to my Woocommerce site. I've wasted so much time to understand concepts of WP, but still can't get clear answer. So ...
0
votes
0answers
8 views

WooCommerce - Product Meta total to add tax

encountered an issue on WooCommerce that i am desperately trying to fix. When adding an order (or an order is placed through the store), that on the orders edit/view screen, in the Product Meta ...
0
votes
1answer
26 views

How to display the featured post on the category page?

I have created a feature post check box on the post page. Now what I am doing is if any user-selected that checkbox then I have to show that post on the category page. I tried below code but it's not ...
1
vote
1answer
12 views

Sorting category products not working

I am using Avada theme and the sorting of the products on category page is not working. When i click on ascending and descending order the ordering of the products becomes random. Please provide me ...
0
votes
0answers
18 views

Update block once an API request returns with a value

I've got a block that allows the user to enter a script when in edit mode, then sends this script to a REST endpoint which returns a WP_Post representing a media file which is then displayed to the ...
0
votes
2answers
20 views

Adding if statement

I'm pretty new to PHP however have managed to put together a site I'm happy with. Once small issue I am having is that I would like to add content for users with specific roles, this means adding an ...
0
votes
2answers
21 views

WordPress Meta description - is it better to use manual configuration?

I was wondering: aside from the fact that plugins are easier to use, wouldn't it be better to configure meta description on a wordpress website manually by code in the header.php or functions.php file ...
0
votes
0answers
7 views

Why dont change the cart total after change currency switcher?

Good afternoon. I use the currency switcher plugin. 2 currencies: $ and Euro. I withdraw the amount from the basket in the cap in this way. When I select the dollar in the select, only the currency ...
0
votes
0answers
10 views

Display wordpress search results within the same page

<div id="photo-search"> <h2>Search Photos:</h2> <form action="<?php get_permalink(); ?>" id="searchform" method="get"> <div> <label ...
0
votes
0answers
14 views

How to “remove” WordPress categories UL and make the list loop in a horizontal line?

When you list categories in WordPress they are looped via an array using a standard manner like this: <ul> <li>catgory1</li> </ul> In ...
0
votes
1answer
38 views

How to remove all enqueued assets from the active theme?

https://gelwp.com/articles/removing-all-enqueued-and-default-css-scripts-in-wordpress/ has code that removes all the enqueued styles including those that may be coming from other plugins besides the ...
1
vote
0answers
8 views

Conditional query that displays on Woo product attribute pages

I have a custom query set up that currently modifies the product category pages of my website. I would also want this code to affect the product attribute archive pages of my website, but I am having ...
0
votes
3answers
15 views

Enqueue All Stylesheets Found In a Theme Folder

Is there a built-in Wordpress function that will allow you to enqueue all stylesheets for a particular theme? I have a directory structure that looks like: -my-custom-theme -css -header....
0
votes
0answers
11 views

Code correction - Hide a profile from visitors with a specific role

The following code i tried to hide the profile of subscriber's role of user not logged in but I need it to be visible to the administrator and shop_manager, how can I do it? add_action('bp_ready', '...
0
votes
0answers
11 views

“Post name” permalink option making some pages 404

I'm having an issue with some of my pages 404ing the "post name" permalink option selected. If I change it to "plain" the pages suddenly work, but stop working when I switchback. Pages that have a ...
0
votes
0answers
11 views

How to remove “sites/1” from upload path in multisite?

I need to remove "sites/1" from the upload path for my multisite. I don't mind that all the sites end up sharing the same folder (I control all the sites). I also don't mind if I need to make some ...
0
votes
0answers
7 views

Woocommerce show all product variations for first attribute [on hold]

I am using standard woocommerce product variations. I have products that have both size and colour as variable attributes. What I would like to do is show all sizes in the "Sizes" drop-down but limit ...
0
votes
0answers
17 views

“Enable Media Replace” plugin does not update serialized object in WPMeta

We utilize WooCommerce and a WooCommerce plugin called Product Documents (https://woocommerce.com/products/product-documents/) to associate PDF media files with products in my online store. Our ...
0
votes
0answers
16 views

An archive widget, coming from nowhere on my posts and pages

Pretty much, it looks like this: And I really do not know where the "Acrhive" is coming from. This is how the Widget page looks like (either this way or the archive is set on the bottom): obviously ...
0
votes
2answers
26 views

Hide review form if user has left a comment

I am trying to hide the comments form if a user has left a comment on that particular post, otherwise display the comment form. I added a code snippet to a hook which hides the form, but reverts to ...
0
votes
1answer
17 views

How to create a Child & Siblings menu for a custom post type?

I am looking to create a menu that displays the child pages when on a parent page, but to then show the siblings when on any of the sibling's pages? -Car --VW --Ford --BMW -Bike -Motobike So ...
0
votes
0answers
13 views

Gutenberg Blocks Messes Up Layout?

So we designed a page that includes a section where featured news articles are displayed. The most recent article is displayed on the left side, while the other recent articles are displayed on the ...
0
votes
0answers
19 views

Separate categories from my submenu and their latest posts

I have a menu with <? php wp_nav_menu() ?> in which I integrated a Walker menu to be able to display the latest posts for each category of my submenu! It works, but I would like to have the ...
0
votes
0answers
12 views

Custom page for creating/editing custom post type

I'm creating a website based on WordPress, but it's not a blog and very much a sui generis website, so I'm developing a plugin that will add the various features I need. In particular, I have created ...
0
votes
0answers
14 views

How do I remove the pagination terms after a single URL?

Here is a single URL 10stuffs(dot)com/technews. and it also displays the result when we add pagination terms like 10stuffs(dot)com/technews/page/2. I just want to keep the URL like this 10stuffs(dot)...
0
votes
1answer
35 views

Get post from custom REST endpoint in Gutenberg

I'd like to get a post object from a custom REST endpoint within a Gutenberg block. The REST endpoint returns as part of its JSON payload an array with a "post" key which contains the contents of the ...
0
votes
0answers
6 views

How to customize BuddyPress Notification triggers?

Trying to figure out where in the BP code to look for hooks or filters so that I can control what triggers notifications. On the BP site it says "By default, notifications are created as soon as one ...
0
votes
1answer
18 views

div:before appearing in front of the block

I'm trying to add a background line to my score box but for some reason div::before is not hiding behind in this case. You can view it live here .game-center-result .score h1 { font-size: ...
0
votes
1answer
20 views

ACF Flexible Content with Bootstrap Carousel Repeater

I'm trying to add a counter for each instance of this flexible content carousel built with Bootstrap. I've tried multiple ways of counting with the while statement. What would be the correct way to ...
0
votes
0answers
5 views

Taxonomy term hierarchy to work with single post as well as taxonomy pages

I have a website which has a CPT of products and product categories with subcategories. I want the url sctructure for taxonomy pages and single pages to follow url/products/term/single-product and url/...
0
votes
0answers
11 views

How to quickly fix duplicated term slugs in hierarchical taxonomies?

my problem is that I've imported in wordpress some hundreds of terms of a custom taxonomy, from another system, in 5 languages. I've found out those terms have sometimes duplicated slugs, and they're ...
0
votes
0answers
13 views

Stuck while adding bootstrap navwalker class

I am stuck while adding Bootstrap Navwalker class in WordPress. All is going well, but when minimize screen to mobile view the Menu disappear. However the Search box is still showing. header.php <...
0
votes
1answer
19 views

wp_trash_post() duplicates post to trash

I'd like to move a post to the trash in the loop. Here's my code; function run_every_five_minutes() { global $post; $wp_query = new WP_Query(array('cat' => array(1), 'posts_per_page' => ...
0
votes
0answers
22 views

Insert variables into wpdb in custom post template

I'm rewriting this to try to make it easier. I am inserting into a database table information which is sent when I click on a button in the page. When I insert the data it works, unless I try to ...
0
votes
0answers
9 views

How to prevent the search results page from using my single-{post-type}.php template

I have created a custom post type which uses single-{post-type}.php to display when ever a page of that particular post-type is viewed and this works fine. When the search form is submitted the ...
0
votes
1answer
6 views

Warning: Declaration of QuietSkin::feedback error

Good day . So today i've updated my wordpress version to 5.3 and after that i started to see this error at the top of all my pages . Warning: Declaration of QuietSkin::feedback($string) should be ...
0
votes
0answers
10 views

Problem with new theme in corrupted menu order and main page info ( page setting parents are correct but menu them order has been corrupted)

We are an Entrepreneur at incubator Growth Entrepreneur. At present, the Expert Center is assisting me with site troubleshooting, and with her limited username and password of WP site, he has given me ...

15 30 50 per page