All Questions

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

How to deploy gutenberg on my own

I am new to Wordpress plugin programming and I do not understand how it is possible to create Gutenberg.zip from the Source code (zip) from this link. Note: Of course I could just download the already ...
-1
votes
0answers
6 views

Force downloads to be served from a separate page!

How to force downloads to be served from a separate page! Like this site: https://www.softloris.com/internet-download-manager-for-windows/ I need the full code and where to place it correctly. Thanks ...
0
votes
0answers
7 views

Cant update the product type

I am developing a plugin for one of my clients. However when my plugin is active I am not able to update the product type in woocommerce. I am using below code for the same add_action( 'save_post', ...
0
votes
0answers
16 views

How to achieve a custom post type permalink like this!

How to achieve a custom post type permalink like this! https://softmany.com/facebook-messenger-apk/download/ https://softmany.com/post-name/download/ Thanks
0
votes
0answers
8 views

Include Carbon Fields via Composer with Mozart

Coen Jacobs' Mozart is a tool to prevent namespace conflicts in Wordpress themes/plugins which utilize Composer for dependency management. It's similar to PHP Scoper but is described as simpler and ...
0
votes
0answers
12 views

why <?php wp_title(); ?> adds '»' symbol?

on last Wordpress when I wrote <?php wp_title(); ?> appear » symbol before the name of the page.. On my functions.php I wrote add_theme_support( 'title-tag' ); Thanks
0
votes
0answers
16 views

PHP Code Not Generating Results

I wanted to create a calculator on my WordPress website. But, my code is not generating results on the page after the form Submission. Please help, Thank you MY CODE: <form method="post" &...
0
votes
0answers
8 views

Changing wp_head to a different post/page

The problem in short: I need to be able to replicate the experience of a post on a static page, including title and meta tags. To do this, I need to set the pages post data to the post I'm cloning. ...
0
votes
0answers
6 views

user_metadata saved but deleted just before display the page

I made custom user fields on wp-admin/user-edit.php?user_id=42. For some reasons, two fields cannot be updated but I can modify an another custom user field which had already a value. I did a load of ...
0
votes
1answer
13 views

Why ever use add_post_meta, and not just update_post_meta?

I stumbled across this nice guide on Smashing Magazine on how to add a custom meta box. In there, I can see this code here, which has me puzzled: /* Save the meta box’s post metadata. */ function ...
0
votes
0answers
8 views

Wpbakery pagebuilder: How to create dropdown with custom taxonomy terms?

I have custom post type and custom taxonomy with it. Trying to create wpbakery pagebuilder's element with a dropdown of terms. Here is my vc_map function: vc_map( array( 'name' ...
0
votes
0answers
6 views

Autoupdate custom type post taxonomy after date set via metafield

I am launching a site with course listings. Using mostly Crocoblock JetEngine, I created a custom post type with a closing_date metafield to enter when the course applications closes. I also created a ...
-1
votes
0answers
11 views

Adding Custom HTML/CSS/JS code in specific page

I've written a HTML/JS code, it's something like a survey which consists of code like this: <div class="Question"> <h3>1. I have the knowledge of procedures needed for ...
0
votes
0answers
5 views

Rent or sell product with bundle products

we need Product Bundles with Rent or sell product option when we select Rent than date option will be show according dates price will be calculated and we select products bundles as well.
0
votes
0answers
16 views

How to render complicated shortcodes inside return

I hope you all having a great day. I'm developing a video player plugin with custom shortcodes and stuff but I'm having a problem with the shortcode render. Currently, my shortcode content is rendered ...
0
votes
0answers
10 views

A way to pre-fill block inserted in InnerBlocks

Is there a way (filter or some other means) to set default block content which is being inserted, depending on block context? I.e. I want for media-text block to show default content upon insertion in ...
0
votes
0answers
7 views

How to run An Ad management in a wordpress blog?

I run a tech blog in which I want to place the Ads of the companies who want to promote their products. So far I am doing manual HTML but it is tedious. I also need to define zones where I could run ...
0
votes
0answers
16 views

I am developing a plugin, in it user can specify that timer will run for like 30 minutes for a number of times

User can set that timer will be shown for 30 minutes at for example 1200 hrs on 17th April. and after that 30 minutes timer will run again for 30 minutes for like 5 times(number of times specified by ...
0
votes
0answers
8 views

Sub domain URL slash / missing after domain and before Post & page slug

WordPress page/page is not working after moved the file to subdirectory. URL structure domain.com/subdirectory/post1 is loading as domain.com/subdirectorypost1 - slash (/) is missing before post/page ...
-2
votes
0answers
11 views

Assign class to headings in ACF using functions.php [closed]

Besides of id I want to add class there //Adding IDs to headings function auto_id_headings( $content ) { $content = preg_replace_callback( '/(\<h[1-6](.*?))\>(.*)(<\/h[1-6]>)/i', ...
0
votes
0answers
23 views

User meta needed in query is serialized - how to unserialize safely?

I'm a complete newbie to php, and I'm trying to use a function suggested by FacetWP to pre-select the post results shown to users. (I'm using this method, rather than pre_get_posts as I want users to ...
0
votes
0answers
14 views

WP-API call function

I'm sorry, I speak a little English. My website API: https://examplee.tld/wp-json If visit my API please run my own plugin: https://examplee.tld/wp-content/plugins/myplugin/myplugin.php <?php /** ...
0
votes
0answers
6 views

WooCommerce Measurement Price Calculator plugin [closed]

How can I set a default value in inputs in the WooCommerce Measurement Price Calculator plugin?
0
votes
0answers
10 views

WP-API new variable

I'm sorry, I speak a little English. My website https://examplee.tld/wp-json return JSON: {"name":"examplee","description":"Just another WordPress site","...
0
votes
0answers
9 views

Gravity forms to local excel doc

Website uses gravity forms, we have a local excel document we use for business processes. We are aiming to either use an integration or an automatic regular download to bring form submissions into the ...
0
votes
0answers
13 views

Hi, Rare Featured Image Error

I have a problem with a website in WordPress. When I create a new post and try to upload the featured image the following happens: The featured image is uploaded to the server, and appears in the ...
0
votes
1answer
13 views

WordPress static home page pagination not working

I am trying to add the pagination on the home page, But it is not working. Can anyone help me to fix the issue? <ul class="xl-products grid- masonry"> <?php if(...
-2
votes
0answers
13 views

WP_Query->get_posts() [closed]

I used the Query Monitor plugin to find slow query on my WordPress site. The below-mentioned WP_Query->get_posts() takes about 18.6200 query time out of the total Database Query time of 19.6249. ...
0
votes
0answers
13 views

Function to recalculate shipping costs on subscriptions after renewal with Automatewoo

I've got a funky plugin that was custom made that adds a new random product from a group that a customer subscribes to. Problem is, that the shipping doesn't change depending on which product is ...
0
votes
0answers
15 views

Wordpress multisite wp-admin to many redirects

I have a WordPress blog set up with the multisite feature. there are two blogs setup on it with the following URLs # Main blog home https://example.com/blog/ # Main blog admin https://example.com/...
0
votes
0answers
10 views

Warning: Undefined variable $post in C:\xampp\htdocs\… after PHP upgrade

I use localhost for testing and debugging sites, before making changes to the live site. Because MySQL failed in XAMPP, I had to install XAMPP from scratch. I'm now using PHP version 8.0.3. ...
0
votes
0answers
8 views

disable fontawesome style in wordpress float menu plugin

i want disable load fontawesome file by Wordpress plugin( Float menu ). but my code not working!!! add_action( 'wp_print_styles', 'masoud_nkh_wp_styles', 100); function masoud_nkh_wp_styles() { ...
0
votes
2answers
18 views

How to use a custom hook

I try to create and run a custom hook on my Wordpress site. In the header.php file I used do_action('somestuff'); On my home.php and page.php I does the add_action like add_action('somestuff', '...
0
votes
1answer
8 views

How to use register_sidebar's 'before_widget' unique id generator into its other parameters like 'before_title'?

I'm trying to create a dynamic sidebar that uses bootstrap 4 accordion with the widget's title as the toggle link and the widget content as the accordion's content: Planned Layout: <div class="...
0
votes
0answers
7 views

How to change login and registration url that are made by the WPAdverts - Classifieds Plugin?

I'm using WPAdverts - Classifieds Plugin for my website. On the add ads page shows the login URL, when we click on that takes us to the WordPress admin URL. I have customer login and sign up pages. I ...
0
votes
1answer
16 views

PHP calling AJAX function that relies on passed PHP function values not working

In reading I am not sure if the issue below could have something to do with needing a custom wordpress ajax handler? All of these functions are inside my functions.php file. I have a couple of PHP ...
0
votes
0answers
6 views

Add Woocommerce Fast and standard delivery optin [closed]

I want to add 2 shipping or delivery options to my woocommerce store. Example, 1) Standard delivery( 21 days) and charges 25$. 2) Fast delivery(15 days) and charges 50$. When a customer chooses one ...
0
votes
0answers
12 views

display comment type count of post single page

I have comment type. when author marks any standart comment. standart comment convert to sticky comment type. but how can I display sticky comment type. This stikcy comment is used as accepted answer ...
0
votes
0answers
9 views

WordPress Translate Date Function is giving Error

I have a function for translating wordpress date and numbers etc. I am not sure what's wrong with this function. The function works perfectly but wordpress shows error on pages with custom fields ...
0
votes
0answers
19 views

browser caching not disabled after disabling in .htaccess

I am having a strange problem in one of my wordpress websites. The problem is that when a webpage is rendered once, editing that page won't be effected afterwards. So no matter how many times you ...
0
votes
0answers
6 views

WooCommerce Checkout Issue specific to Instagram In-App Browser Workaround for Apache

I’m having an issue with Instagram in-app Browser. When I click on a tagged product on my Instagram (@zizacare) or the link in bio, it pulls up an in app browser with my home page but when I add a ...
0
votes
0answers
13 views

Control over custom post types on a specific page

I'm looking for an option to show a specific Custom post type on a specific page. In a category there are 10 posts but on the homepage I just want to show for example 3 specific post types of that ...
0
votes
1answer
10 views

Upload Custom Mime Types in WordPress (SVG, WebP)

I have a plugin I created to allow for us to add additional image types (webp, svg, etc). For some reason it is failing and will not allow me to add svg. Could use an extra set of eyes on this one ...
0
votes
1answer
34 views

How can I check if the first block is an image aligned left or right?

I need to know if the first block is an image and if it's aligned right or left. I printed the $first_block_attrs variable and can see the output is Array ( [align] => center [id] => 450 [...
0
votes
0answers
9 views

Contact Form 7 Fields concatenation

The case I have Contact Form 7 installed in a wordpress site and I use en external sms service to send sms messages in mobile phones when website visitors submit a specific form I did many ...
0
votes
0answers
14 views

HSTS header not being added correctly

I've added the following code to my child theme's functions.php in order to add a HSTS header to my website: function tg_enable_strict_transport_security_hsts_header_wordpress() { header( 'Strict-...
0
votes
1answer
11 views

How to save unsuccessful form submissions locally in WordPress (contact form 7)

I use Contact form 7 and I was wondering if there is a way to save the information filled out in the form even if the form does not get submitted. Few days ago there was something wrong with the email ...
-1
votes
0answers
7 views

How to create a registration manual approval form where customers having a specific domain in email gets automatically approved?

Please tell me is there any way to do this. I don't know the coding please tell if there are any plugins for that.
0
votes
0answers
8 views

Auto order status update gives “Order properties should not be accessed directly” message

All versions are latest as at posting date. I have copied the following snippet from the Woocommerce docs at https://docs.woocommerce.com/document/automatically-complete-orders/ add_action( '...
1
vote
1answer
9 views

Wordpress blog posts permalinks giving 404 on nginx

I have the following nginx configuration to serve blog on /blog/ URL. server { listen 80; server_name example.in www.example.in; root /var/www/website; index index....

15 30 50 per page
1
2 3 4 5
2185