All Questions

0
votes
1answer
19 views

problem with sql query

I have a problem with quotes with query. My code: $this->table_name= 'table_name'; $how_much = $this->wpdb->get_var($this->wpdb->prepare("SELECT COUNT(*) FROM {$this->...
1
vote
0answers
9 views

How to handle custom wp list table bulk actions

I'm using the wp_list_table class for my plugins and still wondering how to handle bulk actions out of the class file as best. I found here that you should do it like this: So the flow is like this: ...
0
votes
0answers
12 views

WordPress Media Grid - not loading pictures

The following page contains 2 media grid sections. The media grid under title: Finishes is not loading. I only see animated loading dots but the pictures won't load: http://acdwheels.com/brixton-...
0
votes
0answers
17 views

Woocommerce search pagination not working

I have a problem with the Woocommerce Pagination but only on the Search Page. On category sites the pagination links are working just fine. But on the Search Page the pagination generates links like ...
0
votes
1answer
25 views

correct sql query

I wrote database queries some time ago and now I would like to improve them. But something I do wrong and i need help. class tags{ private $wpdb; public function __construct(){ ...
0
votes
1answer
9 views

How to get data from a private API and add it to wordpress pages

I got a private API (Cliniko) I want for example the full list of clients to be listed where I want on a page. I know how APIs work, what I don't know is how to implement them in Wordpress. Is there ...
1
vote
2answers
29 views

Using Javascript for Looped Content

I have set up a loop to pull in staff bios. When a user clicks on the thumbnail of the staff member a popup with the complete bio information for that "post" should be displayed. I have been able to ...
-1
votes
3answers
36 views

Block any other domains from using my server

Seems someone has set their domain to use my server. It's not a mirror, the database and everything works and updates with mine. He's basically stealing my content, and he's showing up on google ...
0
votes
1answer
12 views

How to hide out of stock products in Related Products via custom query in WooCommerce

I am trying to hide out of stock items from the Related Products section of WooCommerce. I don't want to edit theme files, so want to do this via functions.php. I have followed this blog post, which ...
0
votes
0answers
11 views

Next and previous post for same category in theme Twentyfourteen 2.6

In old version of theme Twentyfourteen, I could get next and previous post for same category by changing like this in template-tags.php: $previous = ( is_attachment() ) ? get_post( get_post()->...
0
votes
2answers
24 views

Tell wordpress to show a single page instead of an archive page

my wordpress site urls like this: https://example.com/?pid=a125a5&lang=en and query of my archive page like this: <?php $the_slug = get_query_var('pid'); if ($the_slug){ if ( $post = ...
0
votes
0answers
17 views

Why my website not scrolling on mobile or tablets? [on hold]

my wordPress websitehomepage is not scrolling on mobile or tablet but is is smoothly running on desktop or laptop why?
0
votes
2answers
14 views

WordPress filter from custom table is not working properly

I want to filter the exact information from a custom WordPress table no matter the user has filled all the text boxes or not. I have used a LIKE query but it`s not working properly if the user left ...
1
vote
1answer
22 views

post_type_link filter causes 404 on the CPT page it's used on

When i change the permalink of my CPT using filters it gives a 404. I clicked save in the permalinks settings and switched and saved, but there's still a 404. Is there some kind of hooking up i need ...
1
vote
1answer
10 views

Redirect user to previous page after signup from custom form

I've looked on here and found lots of references to this, but none have worked for me, probably because there must be something in the custom code I am modifying that I don't quite understand. Having ...
0
votes
0answers
2 views

MagnificPopup: How to update setInterval slideshow [migrated]

I'm trying to create a slideshow for inline content using MagnificPopup! everything is fine except when I clicked on next/prev buttons it should be re-set a new Interval 8 seconds for each content!! ...
1
vote
0answers
7 views

How to set a CPT to have a page as a parent, then rewrite urls accordingly?

i have a CPT (called review) for review pages and I want to set these as children of pages i've created. right now my CPT slug looks like this: example.com/review/chewy-review but i have a page on ...
-1
votes
0answers
4 views

how to create multiple image up-loader metabox? [on hold]

How to create multiple image uploader metabox?
-1
votes
2answers
27 views

prevent display duplicate titles on main page

I am using a automatic rss post reader on my website and there is a problem with this plugin that sometimes publish duplicate posts.I can't do anything to this plugin but at least it is better if I ...
0
votes
0answers
8 views

Updraft Backup is breaking my site and turning all URLs to 404 errors?

I was getting this weird error where all my pages would give 404, obviously a massive nightmare for SEO. I fixed it by disabling all plugins, then turned them back on and resetting permalinks by ...
0
votes
0answers
8 views

How to attach NextGen Gallery to subscriber Dashboard to allow subscriber to bulk and sort photos?

We use a theme. We do not hard code. Theme providers generally do not offer support for outside plug-ins. So we are in between rocks regarding support. Themes we have tested have all offered some ...
1
vote
1answer
15 views

Add to checkout total lines an additional line below shipping in WooCommerce

I need add "Include pack" line with conditional logic to WooCommerce checkout review order section. How it possible?
4
votes
1answer
30 views

What is the earliest possible hook for safely using `is_front_page`?

When a page request is made, at what point does is_front_page start working? As I recall, if you try using it too early it will always return false. My assumption is that the wp action is the first ...
1
vote
1answer
15 views

How do I flush rewrite rules

How can I flush rewrite rules after saving or updating any page? Pretty much a newbie and trying to figure out how this would work. add_action( 'save_post', 'my_save_post_function', 10, 3 ); function ...
0
votes
0answers
8 views

Creat list of tags and number of posts

How can I download to an excel file a list of all tags used with the number of post each tag is used on.
0
votes
0answers
18 views

How to remove some unused SVG from twenty seventeen?

Twenty Seventeen ads tons of SVG icons on every page. i realized 95% of these icons are from social media or random sites i'll never use. So why load them? I found a hook to remove ALL SVG but i still ...
0
votes
0answers
14 views

Wordpress mariadb - should I use Aria table type?

I've been reading about the benefits of Aria table type in MariaDB (we use mysql Ver 15.1 Distrib 5.5.60-MariaDB), which seem to be simple and fast, yet crash-proof, take on MyISAM. Which makes me ...
0
votes
0answers
15 views

Include only recents custom posts in WP rss feed

How to disable lastBuildDate for rss feed and include only the posts created recently (ex. 3 days before now)? If there is no post, let the feed be empty. I wants to show only recent posts in rss ...
0
votes
0answers
13 views

Can't add image to new post

Our website was recently updated to Wordpress 5.1.1. From this recent update we had some issues that writing posts. When we click "Add media", it shows the media modal with loading indicator and stays ...
0
votes
0answers
29 views

Subdomain multisite instances having same content

I reviewed a site with its subdomains I saw that the contents of its domains are all the same and created automatically. And apparently subdomains are made up of three English characters and three ...
0
votes
0answers
50 views

Problem with latest Woocommerce update Version 3.6.1 ( API ) [on hold]

http://localhost.com/wp-json/wc/v2/products/categories Old: [ { "id": 15, "name": "Uncategorized", "slug": "uncategorized", "parent": 0, "description": "",...
0
votes
0answers
16 views

Show Posts from Specific Category as the Picture Layout Style

I am Trying to do a layout to show posts from specific category. like that picture: i can do in query. but when client create a category and wants to display a layout like the picture. is there any ...
0
votes
0answers
13 views

how to make Wordpress DB lookup code to do “if” funcation

I have a wordpress website that using WPUM to creat accounts and mange them and a coustem plugin for memberships. When users creat an account they chose from membership plugin membership kind ( Sun - ...
-1
votes
0answers
8 views

similar looking wordpress theme [on hold]

What's an efficient way to replicate any given website to wordpress? For ex: https://raw-alignment.com/ I am not looking at writing HTML/CSS css from scratch for the page. a similar looking wp ...
0
votes
2answers
11 views

Add addtional page parameter before loading the page

the problem I got: I need to force a list view for products which are shown on a specific page only for mobile devices, for me the perfect solution would be an additional url parameter -> '&...
0
votes
0answers
5 views

WordPress, WooCommerce wp-admin BackEnd work speed of response issue

Product Uploading: Limited by uploading 1000 products per instance, if more the process is freezing. The more uploaded products a vendor has the slower new products uploading speed. Product Uploading ...
0
votes
1answer
41 views

Reason to add a name of the theme like ('menu-1' => __( 'Primary', 'twentynineteen' ),) in PHP?

Sorry for this novice question. I'd like to know why WordPress themes add their theme names many occasions in PHP files (e.g. where 'twentynineteen' is repeated below, this is from functions.php in ...
0
votes
0answers
19 views

Custom theme woocommerce product detail page template not working

I am new in WordPress development, This question already asked but that not solve my issue. I have create custom theme this my theme folder structure In my custom theme product detail page css not ...
-3
votes
0answers
43 views

Error Establishing Database Connection [on hold]

Well know issue across these pages. Nonetheless, here is a rather unusual version. All was working well. Double checked on two different platforms, smartphone and Desktop. Went on a walkabout... came ...
0
votes
1answer
17 views

Woocommerce budget search

I have woo commerce setup. Now requirement is like say If I search budget lets say 5000,It should show products whose price total is 5000 (ex. one product of price 3000 & one product of prize ...
0
votes
1answer
48 views

Issue with post request to admin-post.php

I am trying to make a post request from my admin settings page for a new plugin. The following code takes me to a blank page after submit (URL is: http://192.168.1.33:3000/wptest2/wp-admin/admin-post....
0
votes
0answers
10 views

Allow in-store pickup and manual change of order status

Currently, i have customers paying deposit or full price with plugin... but pickup will occur in store... I need a woocomerce plugin that will let me easily pull up their order, let them pay ...
2
votes
1answer
57 views

What's the difference between the capability remove_users and delete_users?

In the list of capabilities, I found there's both remove_users and delete_users. It's not clear to me what remove_users is supposed to do, the Codex documentation just says it was introduced in ...
0
votes
1answer
24 views

Issue echoing the site's title in Genesis child theme

I'm having an issue adding a dynamic site name/title to the footer with my Genesis theme. From their shortcode reference I've gathered that I should, I think, be able to add it in the below code in ...
0
votes
1answer
18 views

PHP Code in excerpt?

Is there a way I can add <a href="<?php the_permalink() ?>" rel="bookmark" title="Read more at: <?php the_title(); ?>"><?php the_title(); ?></a> in the excerpt manually?
-1
votes
0answers
8 views

How to add youtubeID to iframe?

How could I add iframe to this code [youtubeid] Shortcode
0
votes
1answer
23 views

How to disable TinyMce's Paste plugin from turning image URLs into embedded <img>?

TinyMCE's Paste plugin automatically turns pasted image URLs into embedded images. https://www.tiny.cloud/docs/plugins/paste/ I need to disable this behavior since I use TinyMCE in a forum on the ...
2
votes
1answer
14 views

Why would wp_schedule_single_event get delayed start?

I'm using wp_schedule_single_event to run a function in the background immediately when a logged in user visits the dashboard page. The problem I'm having is that the time between triggering and the ...
0
votes
1answer
14 views

Set “editor” role to existing user

Using the User ID of an existing user, how do I change the role to Editor? Here's what I tried: $wpdb->query("UPDATE wp_usermeta SET meta_value = 'a:1:{s:6:\"editor\";b:1;}' WHERE user_id = '$...
0
votes
1answer
13 views

Fix nested WordPress multisite resource path?

I created multisite subdomain. The root is working great, but, all images and stuff on the subdomain goes to "/sites/2/sites/2/" instead of just "/sites/2/" - How to fix this?

15 30 50 per page