All Questions
112,557
questions
0
votes
0
answers
26
views
Gutenberg block - remove setting for core/file
I want to remove this setting from the core block "file":
I've tried to do this in theme.json
{
"version": 2,
"settings": {
"blocks": {
"core/...
0
votes
1
answer
15
views
Serving Images from subdomain in wordpress
This is my current image url
https://example.com/wp-content/uploads/2022/06/sample.png served via cloudflare
uploads folder is in my wordpress installation
I am syncing the uploads folder to Backblaze ...
0
votes
0
answers
18
views
Exclude Woocommerce Product Category From Sitemap
Am trying to exclude 2 specific product categories from default WordPress sitemap.
Any help how to archive this?
add_filter(
'wp_sitemaps_posts_query_args',
function( $args, $post_type ) {
if ( ...
0
votes
0
answers
15
views
Wordpress Custom Add To Cart Button with AJAX
i made a custom add to cart button but i cant load it with ajax here is the code.
i added this code into my functions.php
// Add "Add To Cart" button //
add_action('...
0
votes
1
answer
17
views
RSS: fetch_feed caching with different caching delay per feed?
I have seen that the filter wp_feed_cache_transient_lifetime can be used to set the cache period for fetch_feed. But this seems to set it globally for all feeds. Is there a way to have a different ...
0
votes
0
answers
10
views
acf communicate between frontend and backend input
I have got acf plugin for making some field in user section to use it in a page that I have all of the users info in a html table.
one of the field that I want, is for add a text from backend and show ...
0
votes
0
answers
8
views
AWS usage queries
1.We are hosting multiple Wordpress websites on Aurora database. We develop the sites in a subdomain and when go live we just rename the subdomain to the actual domain and make the necessary changes ...
0
votes
0
answers
6
views
DirectAdmin issue with setup WPML in subdomain [closed]
Maybe can anyone from this forum setup WPML in subdomain and maybe know this issue and can help me.
I've spent now 2 days, and still not resolve this.
main.com - default English website
pl.main.com - ...
0
votes
1
answer
26
views
Adding custom form within add_shortcode
I'm adding a custom form within a shortcode, but whenever I paste the shortcode in the page editor the form posts automatically and redirects to /wp-admin/admin-post.php with a blank screen.
I'm using ...
0
votes
0
answers
7
views
Xamp installed local wordpress not allowing to publish or install plugin
I installed wordpress locally with xamp on my pc (Macbook pro Apple silicon 2021), yesterday I could normaly install a plugin (starter template) but today if I try to install a plugin it says at first ...
0
votes
0
answers
17
views
WP-Cli Error When Mapping Multisite Subdomain
I have a multisite located at example.com which has a subsite located at subsite.example.com.
I followed the official Wordpress.org documentation to map subsite.example.com to otherexample.com
https:/...
0
votes
0
answers
34
views
Theme Menu vs Native Menu
I installed
the Blocksy Theme
a Starter Site from Blocksy
Now, that starter site already comes with a Menu, like this:
But when I navigate to the native Customizer and go to Menus, it says there ...
0
votes
0
answers
11
views
How to add span tag inside options
Here when i try to push span tag its apear but its show html view
processResults: function( data, params ) {
var options = [];
params.page = params.page || 1;
if ( ...
1
vote
0
answers
48
views
Wordpress programatically inserted post not showing in authors profile
I have inserted a post programmatically in a wordpress
When viewing the post on the authors' page, there is no post from the post that I have inserted programmatically, but when manually updating the ...
0
votes
0
answers
11
views
Add "Free from x€" to flat rate shipping method
I've ran into a problem where shipping method "Flat rate" is set and also it's rate. I need to add some custom function to extend it's possibility to check the cart for x amount of spend ...
0
votes
0
answers
4
views
Navbar affect loading all products
I am currently working on an eCommerce website. I am using a jetsmart filter for product categories and displays the active filter. Added a product category navbar menu on the footer. When I click the ...
0
votes
0
answers
10
views
Website working fine when logged in but not working fine when we logged out
I am a developer and for 7 days I am facing this problem and I can't find where exactly the problem is
What I tried:
Deactivate WP Rocket Plugin
Clear Cache from WP ENGINE
but I am still facing the ...
1
vote
1
answer
45
views
Disabling direct access to images using .htaccess
I have installed Wordpress in a subdirectory of a subdomain. I am using the following rewrite rule to direct all urls to this subdirectory.
RewriteCond %{HTTP_HOST} ^(www\.)?mysubdomain.mydomain\.
...
0
votes
0
answers
11
views
Allow login only for one account from one device
Hi All i hope all you are ok .
i am working on a membership website , and i want to prevent user from shared there paid account to other people , meaning that the registered account attached to ip so ...
0
votes
1
answer
16
views
Check if user has comment on current post
Hello I have multiauthor website and I need to create a condition to check if defined user ( no current user ) has comment on current post.
Here is my code but I can not complete this
$userid = "...
0
votes
0
answers
6
views
Wordpress jetsmart filter link won't show up [closed]
I am working on an ecommerce website. I used jetsmart to filter product category but the problem is when I click the checkbox , the permalink is not showing in the URL. Is there something that I can ...
0
votes
0
answers
6
views
I want to create a system to display users' profits [closed]
I have an affiliate site and would like to build a system to display users' earnings on the site so that the user will be able to see his earnings
0
votes
0
answers
10
views
Custom reduce stock code affecting date_modified - How to bypass?
I have a stock reduction script that works perfectly. The only problem is, when a purchase is made and the stock is reduced, the date_modified meta is updated. This causes problems for other scripts I ...
1
vote
1
answer
29
views
How do I get reusable blocks via frontend REST API?
I'm using /wp-json/wp/v2/blocks to request all blocks on the frontend, but I just get a response of [] even though I've made a reusable block in admin.
I suspect that what I mean by block and what ...
0
votes
1
answer
22
views
Fetching custom post type without knowing post type (REST API)
How can I fetch posts from a custom post type without actually including the post type in the query url?
The data I'm provided doesn't have a reference to the post type, so all I get is the post ID. I'...
0
votes
0
answers
13
views
WordPress redirect to new domain name
I would like to redirect my WordPress website to a new domain but I want to do it correctly with .htaccess file. I want to redirect only the brands page, products pages, product categories, product ...
0
votes
0
answers
13
views
Safest way to create a custom permalink
I'm building a plugin for woocommerce where a user can purchase tickets for participating in a quiz.
BTW, the URL of the dev environment I'm building the plugin in is localhost/lottery (keep that info ...
0
votes
0
answers
10
views
wp_get_global_settings is not updated on save_post hook
I'm trying to get theme color values and write a .scss file upon updating the theme colors (or other theme settings) in the full site editor (site-editor.php).
add_action( 'wp_after_insert_post', ...
0
votes
1
answer
12
views
How to Enable Ascending or Descending In WordPress Default Built-in Loop
Can someone please let me know how we can add Order functionality to WordPress Built-in Loop?
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
// Post Content ...
0
votes
1
answer
19
views
Wordpress get_media_embedded
test text
<div class="video">
<?php
$media = get_media_embedded_in_content( apply_filters( 'the_content', get_the_content() ));
print_r($media);
...
0
votes
1
answer
20
views
Wordpress bulk category select when publishing post
Often I need to attach post to all categories and I have about 200 categories. When I need to select all categories while publishing post , I select categories one by one. How can I add select all ...
0
votes
0
answers
15
views
Implement editor' CSS on the custom themes
I have a custom theme. I develop it and I have custom CSS library.
But I have make text color red in the WP' editor. But into frontend these attributes don't appear. How can I find WordPress' old and ...
0
votes
1
answer
15
views
Cookies set by a plugin in wordpress for tracking
We have our companies website on a wordpress-multisite-installation with some plugins:
All-in-One WP Migration
All-in-One WP Migration Multisite Extension
Better Search Replace
HTTP2 push content
...
0
votes
0
answers
13
views
After main reset of site being redirected to plain site?
I am a beginner to Wordpress and I took over a NGO site.
I did a main reset with the Advanced WordPress reset’ plugin to start afresh.
Once executed the site was not accessible. No sign-in page. No ...
0
votes
0
answers
7
views
Publish button now showing content after saving
I am working on a theme, which when I build a new header (which is a post) and hit publish, it hides/deletes all elements (looks like a css code that somehow, hides elements on the front). When I ...
0
votes
0
answers
10
views
imporing HTML+javascript from REST API
i got a new task - move my front to VueJs,
so now i have to return forms through API's
here is an example of my Endpoint:
return do_shortcode(get_field('ninja_form_shortcode', $document->ID));
The ...
0
votes
0
answers
11
views
sort metabox columns in listing Single
Hello WordPress community!
I modified an existing meta box which is page_attributes. I grafted it to the articles and it allows me to give an order to the posts. I want to add the column to the ...
0
votes
1
answer
18
views
Contact form - problem with displaying message about sent mail
I'm trying to develop a contact form for a language school website that runs on Wordpress.
Disclaimer: I'm about 6 months into coding, so please forgive me for being new to this. I'm developing my own ...
2
votes
1
answer
32
views
How to add Internationalization in WordPress using Javascript/React?
I am trying to follow this article https://developer.wordpress.org/block-editor/how-to-guides/internationalization/ in order to translate my block.
I created my block using https://developer.wordpress....
0
votes
0
answers
18
views
remove specificly the last <p> tag in all posts
How to remove the last line of content in all of my WordPress posts, which always have its
own tag <p>...</p>?
Ex:
<p>content I want to keep</p>
<p>line I want ...
0
votes
0
answers
19
views
"Can't update in WordPress"
WordPress changes can't showing.
WordPress version: 5.5.3
Node version: 14.19.3
PHP version: PHP 7.4.29
npm version: 6.14.17
There is a website under development in WordPress.
I edited the page in ...
0
votes
0
answers
19
views
Problem with data collection in tables
I have the following to do. I am migrating web content from a joomla to a WordPress, and the problem that I present is that the joomla has a collection of data in tables that is not compatible with ...
0
votes
1
answer
13
views
Having Issue on Redirecting With Session in WordPress
I am trying to create a simple login system in WordPress using core PHP but I am getting this error message
Warning: Cannot modify header information - headers already sent by
(output started at
/www/...
1
vote
1
answer
13
views
Count the number of custom posts per user
I am using JetEngine, and the users can create CCTs (custom content types), that have a single post CPT
I know already how to count the number of posts by the user, I am using shortcode for that
...
0
votes
1
answer
16
views
Enqueue Script in WordPress
How to enqueue script in WordPress ?
When I am using below code script enqueue properly.
wp_enqueue_script( 'adc-handlebars', get_template_directory_uri() . '/vendors/handlebars/handlebars.min.js', ...
0
votes
0
answers
11
views
Can export gallery but can't import it Wp all import
I have a store with WordPress and alidropship plugin no woocommerce , I tried to update some galley images with CSV file but I can't do it because alidropship gallery images are different than ...
0
votes
0
answers
16
views
User filter posts by year
I am looking to add a filter to a page so users can select the year and view only posts from that year. Something similar to the filter on this page: https://www.economist.com/weeklyedition/archive
A ...
0
votes
0
answers
6
views
Multisite cookies are being shared across domains unwanted
Setup
I have a multisite that consists of 4 domains .com .de .co.uk and .fr each has its own sub directory and none of them are linked to each other in any way apart from theme code.
Problem
each has ...
0
votes
1
answer
29
views
Hook before user is created and make some custom validation
I try to hook in user creation process in admin dashboard /wp/wp-admin/user-new.php to make some custom validation on data with the following hook, but the hook is not executed on form submit. What ...
0
votes
1
answer
18
views
How to change wordpress RSS to be in a specific format?
I am working with an old system that takes in very specific format for RSS. The one thing that doesn't work is the featured image. I need the image to be in a
<image>
<url></url>
<...