All Questions
112,213
questions
0
votes
0
answers
6
views
Ecommerce archive page
Hello I'm working on a multicategory ecommerce website, but I don't know how to work with archive pages yet and was wondering, if I have multiple sub categories, are there multiple archive pages ...
0
votes
1
answer
11
views
I don't think WordPress is loading jquery or bootstrap js
I'm building a WordPress theme and I've used the code from https://codeinhouse.com/how-to-create-custom-post-type-slider-in-wordpress-without-plugin/ to build my slider I've also used https://github....
0
votes
0
answers
7
views
Failed to load resource: the server responded with a status of 404 ()
I face a problem when I load my sites:
www.ehabcenter.com
www.ehabcenter.xyz
these sites are in different c-panel but have the same web host
I got many errors 404 in consol when I open the site in ...
0
votes
1
answer
13
views
Count posts per taxonomy else change taxonomy if less than x number
$taxonomy = $tag->count > 3 ? 'post_tag' : 'category';
$cats_or_tags = $tag->count > 3 ? $tag_ids : $cat_ids;
$args = array(
'tax_query' => array(
array(
'taxonomy' =&...
0
votes
1
answer
20
views
How to obtain "wp_rest" nonce for WP Statistics plugin manually?
During my pentest of a client's websites I stumbled upon the WP with vulnerable WP Statistics plugin installed.
To exploit this vulnerability, I should send a JSON-API request to endpoint /json-api/wp-...
0
votes
1
answer
15
views
Fatal error on wordpress order update
Since a while we're experiencing some trouble when updating orders on our wordpress environment.
This is the error log from wp-cron.log
PHP Fatal error: Uncaught Exception: Invalid order. in
/home/...
0
votes
1
answer
15
views
WordPress navigation wont appear with wp_head
so im building a custom theme and ive got stuck on the navigation
if i use wp_head(); it loads bootstrap and my custom style sheet but not the navigation
if i use get_header(); it loads the navigation ...
0
votes
0
answers
15
views
get_the_terms() returning wrong results inside of loop
When I use get_the_terms() inside a loop, the whole thing behaves very strangely. Sometimes the terms are included twice or three times and sometimes a post inside of the loop returns only false.
I ...
0
votes
0
answers
8
views
WP : CPT UI + ACF + FaceWP + Elementor + WPML = link not working [closed]
I've just get a maintenance contract on a WP website which already had CPT UI + ACF + FaceWP + Elementor, all in french (primary lang).
I was asked to add WPML to it. I've managed to change every ...
0
votes
0
answers
6
views
Include results with tags relevant to the search keyword with JSON rest API v2
Wordpress doesn't natively search for tags so I need to install WP Extended Search and add post_tags as one of its parameters so whenever I search for keywords natively, posts with that tag will ...
0
votes
0
answers
25
views
Create membership number for existing/new users
I have a membership site with 4000+ users currently on it.
I am needing to give both new/existing users an automatic ID number.
its very similar to this: Create Unique ID for user
However, this only ...
0
votes
0
answers
8
views
Why is elementor displaying same svg icon in another location despite me selecting a different icon? [closed]
You can clearly see on the left hand side a different icon is selected but it shows that same icon everywhere except for the two far-right cards
0
votes
0
answers
19
views
How to get rid of undefined variable in previous post image
I am working on a website on WordPress and I have it set to where the bottom of the post will automatically link to a random previous post with a picture from that previous link but a notice keeps ...
0
votes
0
answers
9
views
Changing Sender Email and Name on the blogs of a WP multisite [closed]
There is this popular plugin called WP Mail SMTP which allows to change the sender email and name in all outgoing emails.
But AFAIU this is a global setting, that is if the WP installation is ...
0
votes
1
answer
7
views
How to create a classified section in place of comments_template
I am running a site where users can find great information about musical artists and their releases. Each release is a wordpress post. Each artist is a wordpress post. In my single-artist.php and my ...
0
votes
0
answers
18
views
Changing static text in a theme into variable content that also respects language. Easiest way
I bought a Theme which unfortunately has some static content, I managed to hide and remove some via editing and the custom css.
But I have a text field above the navigation where it says "Work ...
0
votes
0
answers
15
views
How can i filter wordpress users by custom feild?
I'm displaying users (authors) on a page. how can I add a filter based on user custom feilds?
<?php
// THE USER QUERY ARGS
$args = [
'role' ...
0
votes
1
answer
12
views
Contact Form 7 Wordpress, checking a few fields, if empty then invalid
Could someone help me to solve the problem.
I would like the system work like bellow.
If both fields are empty = invalid.
If any of the fields is completed = valid
add_filter('wpcf7_validate_text', '...
0
votes
0
answers
11
views
WordPress get last inserted user id
I want to disable user_login field into my CMS. They are register only their email adress. I think to create secret user login by programmatically. I think for accessibility and manageability also I ...
0
votes
0
answers
10
views
WordPress WooCommerce email notifications going to spam folder
I have just built a new WordPress site for a client, and repointed the domain's (mellowmarshfarm.com) DNS records to the new hosting service, Flywheel.
The client's custom email address is hosted by a ...
0
votes
0
answers
12
views
How To Save Data From Remote APIs To ACF?
I've been attempting to ingest remote data from an api partner into Wordpress. To data I've used wpallimport plugin, but it's quite limited.
How would one connect with a remote api and then save the ...
0
votes
0
answers
8
views
Bulk update published posts date randomly using wp-cli?
I see an option ([--post_date=<post_date>]) in wp-cli, but how can we use wp-cli to update all my published posts date randomly?
For example, I want all posts date changed randomly between 01-01-...
0
votes
1
answer
11
views
Migration to WP - Couldn't load image
Situation:
I'm trying to migrate static page made with HTML/CSS/JS into Wordpress. The images won't load. They work in HTML, but when I migrate into PHP there are only alt-descriptions visible. Upon ...
0
votes
0
answers
7
views
Add Rewind and Fast Forward to MediaElement.js
Using Series Engine which uses the WP audio player. We need to add rewind and fast forward 15 seconds to the player but cannot get anything to work. Anybody know how I can do this?
0
votes
0
answers
13
views
How can I extract a single file from a ZIP file and return it to the client as a downloaded file? [closed]
I would like to include a hyperlink in a page on my WP site which extracts a single file from ZIP file, and sends this on to the client as a downloaded file.
In case this isn't clear, I want to be ...
0
votes
0
answers
12
views
Multiple Shortcode Creation In Functions.php Using Else,ELSEIF [closed]
Please excuse my ignorance! I almost don't know what I'm talking about.
Our website currently has php written to create shortcodes that pulls data (forum posts) based on when it was posted for a ...
0
votes
0
answers
6
views
how to add customer code to woocommerce emails? [closed]
I would like to add the customer code (ID) into WooCommerce emails ("new order" email template).
Which PHP code snippet do I need to use?
Many thanks!
EDIT
I recently found this topic: https:...
0
votes
1
answer
14
views
Is there a way to make [Table Of Content] plugin while not using revision data?
I have a problem while using TOC plugins 'cause all of TOC plugins use revision data to recognize header tag. I'm using my own metadata (custum field) plugin and the data doens't show on the revision ...
0
votes
0
answers
4
views
Dynamically added custom fields not displayed on WooCommerce email notifications
I have a different kind of scenario then the typical custom fields (I suppose). I am not getting custom values (fields) from user in the form rather I have an implementation which adds:
ColorName
...
0
votes
0
answers
8
views
How do you remove header sitewide from mobile only?
I'm having trouble hiding my header on mobile devices. My wordpress theme does not have an option to hide it, so I was looking at the theme's header.php file if there was anything I could add to it. ...
0
votes
0
answers
13
views
How to Implement Search Functionality?
<div class="col-lg-8">
<div class="row">
<?php
$search_term = get_search_query();
$term = ...
0
votes
1
answer
14
views
Assigning a category to a custom post type in Wordpress
I am working with custom posts to create a 'document' custom post type and then trying to assign the category during wp_insert_post, have tried using both post_category and tax_input to no success.
I ...
0
votes
0
answers
6
views
I have a wordpress woocommerce website, in this website i want short description changes automatically based on the selected variation like amazon? [closed]
Dear All,
i have a wordpress woocommerce website, in this site there are products, some are variable and some are simple, i want to change woocommerce short description to change automatically based ...
0
votes
0
answers
9
views
website redirects to homepage for all 404 pages, wp-cron and admin-ajax.php
My multisite WP website is redirecting all the 404, wp-cron.php, and admin-ajax.php to the homepage when the user is not logged in.
.htaccess rules:
RewriteEngine On
RewriteRule .* - [E=...
0
votes
1
answer
28
views
Sort users by meta key value even if meta key not present for all users
Only some users have a specifice meta_key some_metakey associated with their ID.
The following args successfully orders users with a specified role by some_metakey but only those with that meta_key.
...
0
votes
0
answers
24
views
How can i export and import my plugin option Wordpress
I am trying to export the plugin options that I created.
if(!get_option('myplugin_opts') ){
add_option('myplugin_opts');
}
and also I want to know how I could import the options to WordPress for my ...
0
votes
0
answers
14
views
multisite - unable to connect to network administration
I install wordpress and set my website as multisite to have many sites
I certainly make a mistake as I can't access to network administration anymore
so I can't add a new site or see themes ....
I don'...
0
votes
0
answers
15
views
How do I include and iframe in a Custom Block?
Given the html block tag I can include and iframe from Google My Maps in my post.
I need to create a block where the client can paste the URL from the embed code and the block render the iframe.
I ...
0
votes
0
answers
15
views
Can you disable typography panels for just the paragraph block?
I'm wondering if there is a way to remove the typography and custom color panels from the sidebar for just the paragraph block.
I've currently written a function that I've added add_theme_support to ...
0
votes
0
answers
13
views
403 forbidden while updating the page [closed]
While I updating the page with more content means above 810 words am getting 403 forbidden error, if the word content is below 810 word count there is no error.
I tried using checklist plugin and gave ...
0
votes
1
answer
24
views
How to add custom meta to 'pre_get_terms'?
I have a custom taxonomy with custom meta. I have added the custom meta values to columns in the admin list page just fine. But if I search for values that are in these columns nothing is found. I'm ...
0
votes
1
answer
12
views
Wordpress change wp_nav_menu walker with a custom one
I have a downloaded theme and it where the wp_nav_menu is created it looks something like this:
<div class="nv-nav-wrap">
<div role="navigation" class="<?php ...
1
vote
1
answer
22
views
list/consult Taxonomy only for the respective author/creator in dashbboard
I'm trying to filter so that only the creators of the respective categories can edit them.
I created a cat_author meta field and associated it to the taxonomy.
In this way, every taxonomy has an ...
0
votes
0
answers
10
views
Adding /blog in front of single posts (only)
I would like to add /blog in front of the url for a single post:
e.g.
website.com/blog/news-article -> single article
website.com/blog -> blog archive (showing a list of all blogs etc.)
Ive ...
0
votes
0
answers
20
views
Why is $_POST empty when saving custom Meta Box?
I'm creating a Meta Box in my custom Plugin where the Administrator can select which users can view a certain post based on their roles. When I select the role and save the meta box content by ...
0
votes
0
answers
14
views
Limiting actions only to edit.php page for specific custom post type
Excuse me if something like this has been asked before. So, I'm trying to alter the query which displays the posts of a custom post type, but on the admin side, more precisely, the edit.php page. This ...
0
votes
0
answers
8
views
WordPress: Export/Import Yoast meta title & description to custom taxonomy
I want to export the Yoast meta title & description from a custom taxonomy with the WP All Export. Unfortunately there is no direct way with the plugin to do that.
There is an extra WP All Export ...
0
votes
0
answers
5
views
Jet Engine extend form action CROCOBLOCK [closed]
Good morning community, I hope everyone is very well and healthy, I come to this community in order to get a consultation to help my problem, it happens that I am using the JET ENGINE complement of ...
0
votes
1
answer
23
views
how do I turn off whatever causes links to be embedded as URL's site title
When I print a url onto my site, it automatically gets wrapped in:
<blockquote class="wp-embedded-content" data-secret="tDj3qpdVAi"><a href="https://www.example.com/&...
0
votes
0
answers
24
views
RSS feed for a custom page template
I would like to know if it is possible to have a custom feed based on a page template and how?
This is my custom query:
$my_custom_query = new WP_Query( array('cat' => array (4335, 12488),
'...