All Questions

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

How do I edit the terms output args or array data?

This correctly prints the terms with images but the wrong order: <?php $terms = get_the_terms( $post->ID , 'wpsl_store_category' ); foreach ( $terms as $term ) { echo '<a href="'...
0
votes
0answers
5 views

Query data after an Ajax insert

After a successful insertion with Ajax of an entry I would like to see what the ID and url of that same entry is and show it in a modal window Any way to get that data? <script> ...
0
votes
0answers
5 views

How to delete all images from code in all post_content

In the past I occationally used this sql query to update links in post_content: update wp_posts set post_content = replace(post_content,'domain.org/Maries','maries.no'); I wonder if I could use a ...
0
votes
1answer
8 views

Gutenberg build error: You may need an appropriate loader to handle this file type SCSS

I had a plugin up and running with a scss to css compiler. Suddenly after I moved a few files into a better structure I get this error while building the block: ERROR in ./blocks/random-game/src/style....
0
votes
0answers
5 views

How to remove font awesome from loading in wp theme

Question: How to remove font awesome from loading in theme and replace social icons with images? Theme Hueman - WP Multisite install What I did: In the functions.php of a child theme from Hueman Theme,...
0
votes
1answer
9 views

Group Product Types

I am using Advanced Custom Fields and I am attempting to group together the custom post types with a similar value from a dropdown field. As an example. Other would-be its own heading and projectors ...
0
votes
0answers
5 views

how long do restored versions take to go live?

I just restored a page to a version from august of this year but I can see on the live site it's still there. I refreshed the page and cleared the cache however it is still showing on the live site. ...
0
votes
1answer
8 views

Making a child theme for "Airi"

I had chosen the Airi theme for my WordPress website. I planned to make some customizations and decided to use a child theme. I had studied the WordPress documentation page https://developer.wordpress....
0
votes
1answer
8 views

Get the URL of the page from which an ajax request has been launched within ajax callback

I'm calling a server-side function written in PHP via wp-ajax. The server-side function eventually redirects to another page for an authentication step, and then redirects back to the initially shown ...
0
votes
1answer
10 views

How to send a php var to jQuery Ajax call with two different file

I need to send a private e-mail address from a php file (page.php) to an Ajax Call in an other jquery file (sender.js). This e-mail address must be invisible to user/or website until the user get an ...
0
votes
0answers
13 views

How can i add to a existing wp query

Basically what I would like to achieve is I am building a property site and would like to build a custom search form that will search for tags and show products relating to the tags selected do I have ...
0
votes
0answers
7 views

Browser Error Message: Firefox Has Blocked Parts Of This Page That Are Not Secure

Every now and again I keep getting this error message from firefox and other browsers like chrome and edge saying that parts of my page that are not secure are blocked and when I check to see what the ...
0
votes
0answers
8 views

Gutenberg Blocks and get_option() for styling

I'm creating a Gutenberg block and I'm trying to customize a button's style (background color, text color, etc.) and it's inner text with hexcode set in an options menu. What's the best way to access ...
0
votes
1answer
15 views

Unable to return values from function

The function below is intended to return a list of the WordPress submenu pages. function get_admin_menus() { global $submenu, $menu, $pagenow; if ( current_user_can('manage_options') ) { ...
0
votes
1answer
12 views

How to hide a woocommerce setting tab from admin & shop manager?

I want to hide specific tabs in woocommerce setting. I read this article: https://stackoverflow.com/questions/36779307/hide-a-woocommerce-setting-tab It worked for shop manager only. I want to hide ...
0
votes
0answers
13 views

Wordpress Ajax form filter | Search by title with ajax form, breaks the other filters

I have implemented a form within my code that gives the user the possibility to filter the products according to his needs. The form was created in ajax, to increase the user experience level of the ...
1
vote
0answers
10 views

Is it possible to access the wp-admin from one instance while keeping WP_HOME pointing to the balancing url?

I have a Wordpress running in a load balancer scheme with two instances. For security reasons, i've decided to block wp admin access from the public url and allowing it from one of the instances. ...
-1
votes
0answers
15 views

Why arent there any wordpress.com app posted on the Googleplaystore app? [closed]

Why aren't there any **Wordpress app **on the Googleplaystore site?
0
votes
0answers
13 views

jQuery if Loop Object Contains Text then Show/Hide Elements Per Loop Object

I am building a directory site. The search results page displays 10 posts per page, each is wrapped in it's own Div and displays simple information such as a category icon, name, address and a "...
1
vote
0answers
7 views

Way to change the Yoast Schema depending on post type?

I’m trying to change the schema on my website to work with my custom post types, so events/jobpostings can be categorized as such. But trying to work with a hook found on Yoast’s website, that hook ...
0
votes
0answers
15 views

Trying to revive an old wordpress site, but newer versions of wordpress install a different db structure

I'm trying to revive a site that worked in 2015. The theme is custom, and contains custom post types, pages, and a bunch of standard posts. When I use Wordpress 4.4 (the version that this last worked ...
0
votes
0answers
24 views

WordPress jQuery Post - Amending Variable Value Within Function Command

I have a variable in Javascript which I am trying to pass to PHP. I have this working using jQuery.post. The issue is, the variable (linkforsharedURL) is declared within a multidimensional array and ...
0
votes
0answers
4 views

Where WooCommerce Guest Customers Are Saved in the Database? [closed]

I need to migrate the list of customers from a WooCommerce website. They have the option Allow customers to place orders without an account enabled, so no of their customers are a WP user, all are ...
0
votes
1answer
12 views

Plugin to design E-Mail Templates which then can be used in own PHP code

After about two days trying to use Mailpoets E-Mail-Templates to send notifications from my own code (own plugin) I'm getting a little desperate... What I want is the possibility for a user to edit ...
0
votes
0answers
27 views

PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn't exist in wordpress/wp-includes/wp-db.php

I am writing a plugin and want to create a database table when the user installs / activates it I have written the following into an install.php global $wpdb; $fm_db_version = '1.0.0'; $db_table_name ...
0
votes
0answers
14 views

Ultimate Affiliate Pro Plugin :- Having issue extracting user data from wp id slug [closed]

This line of code <?php echo $array['reference'];?> Pic Attached output user id slug example :- (user_id_20) Pic attached How can i remodified the code and get the first and last name ...
0
votes
0answers
14 views

Wordpress loading wrong logo for light/mobile version [closed]

I haven't got a lot of experience so go easy on me. But my Wordpress website is loading the wrong logo when viewed on mobile. It doesn't switch to the light/white version of the logo. Now the logo ...
0
votes
0answers
24 views

Add a product category to a specific product via a button

I want to add a button to product page when those products are in the category"expire". This button has to add a category. I search on web a solution and I found a code. I modified this code ...
0
votes
1answer
26 views

Nested Queries of decreasing specificity

I have the goal of getting n custom posts from a query. I have 4 values stored in ACF. If I can find n posts where all these values are the same as the current post's, then I want to return those n. ...
0
votes
0answers
12 views

Filter to analyze WordPress template part with SEO Plugins (SEOPress example)

I have a question. I currently created my own theme and created some pages like the html of the homepage inside a template in the template-parts folder. Everything is fine, the theme runs, the pages ...
0
votes
0answers
11 views

Disable ModSecurity To Just post.php

<Files post.php> <IfModule mod_security2.c> SecRuleEngine Off </IfModule> </Files> Hello. There is my code but it's not working. How I can disable ...
0
votes
1answer
9 views

How to access my wordpress application using two URLs?

I have deployed a simple self managed Wordpress application on AWS. My setup looks like this. AWS CloudFront -> AWS ALB -> EC2 servers [ wordpress runs] -> RDS Database I have associated a ...
1
vote
0answers
17 views

retrieve Meta field value from CPT and set those values as Image Meta Field "Title"

So i have a created a CPT (Car) with custom meta fields (Model, Maker, car photo ..etc) and those meta fields are being filled using a frontend form , all these has been created using JetEngine Plugin....
0
votes
0answers
7 views

How display related post only in Default category on single

I have a website with lot of post. I use 3 or more category for my post. I wanna display post only for the "default category". I try this one but work with all category not only Default. If ...
0
votes
0answers
25 views

Using `set_transient()` when saving a custom post type

I've got multiple custom post types registered via a plugin and one of them is used as a precursor for multiple other queries. In an attempt to reduce queries throughout the site, I've attempted to ...
0
votes
0answers
7 views

Featured image not shown in header

A company gave me this webpage to work with. I'm not sure what I did but the image background for the heading has dissappeared. (https://www.icelagoon.com). I've been mainly using Elementor to create ...
0
votes
0answers
8 views

My theme header is stuck on a low resolution image?

My responsive header is stuck on the medium-large srcset regardless of width UNLESS I'm in DevTools. I have disabled all CDN's and image resizing, but now this seems to be browser behavior i cannot ...
0
votes
0answers
10 views

validation field form registration vendor dokan woocommerce

I am making a marketplace with woocommerce and dokan. Seller registration is only for those who have an invitation code. in the vendor-registration.php dokan template I add the input for the new field ...
0
votes
1answer
17 views

600k of option_name "c_facebook_background_product_sync_job"

I have disabled my facebook for woocommerce plugin and I issued this command in phpmyadmin:- SELECT COUNT(*) FROM wp_options WHERE option_name LIKE 'wc_facebook_background_product_sync_job_%' AND ( ...
0
votes
0answers
17 views

How do I converge taxonomy category permalinks into one?

My site has many different taxonomies but three taxonomies (Music, Books and Video games) I want the permalink to be /entertainment/. If I use the permalink structure in WP it will also change the ...
0
votes
0answers
12 views

What is the XSSAttack option_name for in the options table?

I am working on eliminating malware from a site and reviewed the entries in the options table. Found an "option_name" of XSSAttack with an "option_value" of 1. Lots of searches on ...
0
votes
1answer
11 views

Shortcode to appear and show the date not code in Title and description of Social Media sites

I have used some shortcodes for my few posts. You can see here on of the post I have included the shortcode. But when I am sharing this code to any social media it is not able to show the date. Right ...
0
votes
0answers
12 views

Woo Commerce Referral Plugin for Subscription Services [closed]

I'm looking to setup a referral program for my subscription site built with Woo Commerce. I can see plenty of good looking referral plugins but can't see if any do quite what I want or not. Can anyone ...
0
votes
0answers
9 views

Change published date and time using SQL query for page in every 5 hour

If I want to modify publish date and time every 5 hours every day and before modifying the date I also want that for 1 second that post should be drafted then in the next second publish the particular ...
0
votes
0answers
10 views

Need help with creating a simple shortcode

I need some help creating a simple shortcode from the following code: The below code allows you to add a 2nd product category description for woocommerce. It is currently set to display beneath the ...
0
votes
1answer
23 views

Wp-query Order By problem

I'm trying to sort a query according to the order they write it in but it takes an order by ID. The variable $idpaginas prints: 20659,20626,20585,20616,18464,19748,19991,18520,20588,21268,18753,20556,...
0
votes
0answers
16 views

Editor inserting bootstrap css and we don't know why

This is an unusual one (I think). We run a news site, and sometimes when editing posts (using the classic editor, not the new block one) we find that a paragraph in the post we are editing has somehow ...
0
votes
0answers
25 views

Custom post type change permalink query

My permalink rules are set to post name. I created a custom post type named: house. The default url would be: {{site_url}}/house/{{house_slug}} Then if I print the query in the pre_get_posts action I ...
0
votes
0answers
5 views

Woocommerce show field in product if product-tag is "VET" else hide

I have this situation: There are products in my SHOP with the tag "VET". I need to display a message (in the shopping cart or on the product itself) when a product with the tag "VET&...
0
votes
0answers
10 views

WP Optimization: Removing Orphaned wp_options (especially the autoload ones)

Is there no mechanism which purges old options from the DB? I tried a few plugins in the past and I found out that there are a few pretty long option strings which are set to autoload but IMHO not ...

15 30 50 per page
1
2 3 4 5
2212