All Questions
112,565
questions
0
votes
0
answers
7
views
how to change add to cart button to call for price button in one of product variation?
I want to replace add to cart button for one of my woocommerce product variation options to call for price button. how can I check that variation is selected to reach this goal?
0
votes
0
answers
20
views
How can I add random alphabets in wordpress permalink posts structure
I want to add random alphabets to wordpress posts permalinks with the following order:
current permalink structure sitename.com/view/%postname%/
https://www.sitename.com/view/this-is-my-post-title/
to
...
0
votes
0
answers
11
views
How to collect heading tag in a single post, such as Microsoft Word?
This is what I need (without plugins and without adding shortcodes to all posts)
Headings h1-h6. Collect lower headings and text.
Example:
Like Microsoft Word. (Like this file)
Example:
Links that ...
-1
votes
0
answers
5
views
How to make shortcode wordpress filter and ordering 1 category from woocomerce
How to make shortcode wordpress filter and ordering only 1 category from woocomerce?
when i try to make the shortcode i cannot ordering 1 category, because all of category automatic show, same if ...
0
votes
0
answers
10
views
Moving featured image to top of new post editor screen
For some reason I'm having a hard time finding the right file to edit (even though I've done it before) but I want to move the featured image section to the top of the sidebar for the 'new post' ...
0
votes
0
answers
19
views
How can I hide the ACF shortcode when empty
I am facing a issue. I am using a snippet from github. It renders the URL with some attributes. However, when empty, the short code is still displaying and is not being hidden. Here it is:
/***********...
0
votes
0
answers
7
views
Editable select options in quick edit OR in plugin settings
My plugin includes a select field that appears in the Quick Edit, but right now the values are hard coded in the plugin. I'd like to make these select options editable (add or remove option from ...
0
votes
0
answers
7
views
Cookie Limitations for WordPress Site? (TablePress Data)
I'm new to WordPress and all forms of WebDev.
I'm making a website that focuses around Checklists for trading cards.
I do this in WordPress by creating a Frontend Checklist list (1 list per card) to ...
0
votes
0
answers
9
views
Same category and post base
I’d like to have the following stucture:
Single Post: test.com/blog/post-name/
Category: test.com/blog/my-category-name/
If I go to permaliks and set: test.com/blog/%postname%/ it works okay
But if I ...
0
votes
0
answers
22
views
Ajax call not working in wordpress through a plugin
I have 2 Ajax call the first is working but when it send the data to other the file send_data.php and when I try to run any wordpress function which is add_post_meta it doesn't work!
This's the first ...
0
votes
0
answers
8
views
Set QTY to 0 With WP All Import from CSV
I'm working with Woocommerce WP All Import to import stock quantities from my supplier's CSV Feed. However, when the item is out of stock at the Supplier, the product is removed from the CSV file, and ...
0
votes
0
answers
6
views
Wordpress keeps redirecting to localhost
Whenever I enter my domain name I can access all other files, but once I go to /wordpress it'll redirect me to localhost (which doesn't work). My wp-config contains the right address, so does my ...
0
votes
0
answers
6
views
How to change page ID in Polylang?
I want change link to another page in PolyLang. Example I added PL version and now I want change link to point another page. I can only add new page I cant edit link in PolyLang.
I know that Polylang ...
0
votes
1
answer
16
views
Wordpress Full Site Editing: How can I access my posts listing page?
In WordPress 6.0, I've created a block based theme using fullsiteediting.com's theme generator. It had a default homepage which listed posts. Within the block editor (sidebar->Templates->Add New ...
0
votes
0
answers
9
views
Using Regex to remove orphan p tags (not empty)
I was using a custom CSV importer to import a particular data set to my WordPress site. The import is done and about 700 posts are created. Everything is perfect except some orphan <p> tags are ...
0
votes
0
answers
12
views
custom image size not being displayed in loop
I believe I'm missing something on media images.
I have created a custom image size with this code:
add_image_size( '250-square', 250, 250, true); // cropped
I have then uploaded images. When I ...
-2
votes
0
answers
20
views
Please Urgently Need Help If Somebody Know How To Add this Functionality [closed]
The functionality of the 'customer lounge' its a Button
Customer Lounge will only be accessible by users that have bought a package with us.
They will be able to navigate a dashboard where they will ...
0
votes
0
answers
30
views
File gives 404, but when renamed is found
I am working on a plugin on an Apache centos cPanel server.
I have created a file /wp-content/plugin/includes/license.php and when I try and access it via an ajax call or even directly via example.com/...
0
votes
1
answer
15
views
What's more important for supporting concurrent users on an elearning site with dynamic content, CPUs or RAM?
My site has >100 concurrent users. What's more important for supporting concurrent users on an elearning site with dynamic content, CPUs or RAM? And why?
0
votes
0
answers
11
views
How to embed kajabi's form to wordpress page [closed]
Hello I'm trying to embed kajabi's form to wordpress can anybody help I've researched this and what I got was turning the Javascript code to a shortcode. I'm not a programmer and I don't know much ...
0
votes
0
answers
12
views
Update post action even if non logged user
I've a form on the front-end for non logged user. On submit 3 actions.
Send email = ok
Create post = ok
Update another post = error
How can I achieve the third action, update a post. It seems to be ...
0
votes
1
answer
22
views
Conditionally run function based on custom meta value?
I’m looking for a way to conditionally display an image within certain Woocommerce hooks that I choose based on whether a value is true within a custom meta field for the products on my site.
For ...
0
votes
0
answers
12
views
Order custom post types by custom fields only in frontpage
I have this code:
function my_pre_get_posts( $query ) {
// do not modify queries in the admin
if( is_admin() ) {
return $query;
}
// only modify ...
0
votes
0
answers
21
views
wp.media Uncaught TypeError: Cannot read properties of undefined (reading 'state')
Here in a JS class, I used "wp.media" to upload images. I can open the media popup by clicking a button. But getting this error (Uncaught TypeError: Cannot read properties of undefined (...
1
vote
1
answer
18
views
Restrict Access without Creating Users
I'm building a plugin which receives quote data form a third party api and uses it generate a post of type 'quote' which, on the front end, comprises an acf_form which the customer is required to fill ...
0
votes
0
answers
39
views
Why will comments not remain open on custom post types?
I have a WP install which makes use of default posts and of one custom post type (reviews). Discussion settings allow comments on both these post types. The comment form is present when viewing posts ...
0
votes
0
answers
7
views
Elementor Hide Element when other Elements are also hidden
Currently im searching for a solution to hide an element when other elements also hidden. So Basically as you can see in the image i have a divider there and three elements below. The elements below ...
0
votes
1
answer
16
views
Custom taxonomy - checking if name includes a declared value
Can anyone help me adapt the below which creates a set of <LI> elements with custom taxonomy categories created in a custom post type I have. What I want to achieve is to only list the 'project-...
0
votes
0
answers
12
views
How to display conditional menus with Twenty-twenty two theme (and other new block themes)?
With earlier versions of default Wordpress themes I was able to display an alternative main menu depending on the category of the given page or post, using this filter in my functions.php:
( In this ...
0
votes
0
answers
22
views
wordpress built-in Jalali date convertor
I'm developing a new plugin for a client and he wants dates to be in Jalali. As I changed language of WordPress to Persian, the posts date automatically changed to Jalali. So I Think maybe WordPress ...
0
votes
1
answer
19
views
How do I upload file through custom field, save it to database and get it
I have made a custom field without any plugin. When I choose file I want to upload that file and get its url on my page. Basically, I want to upload video and show it on frontend. This is my code ...
0
votes
2
answers
23
views
Custom post type loop with custom category filtering
Can anyone help me here. I want to list all the custom posts with the type 'portfolio' in this loop, where they have the 'Project Categories' set to 'ABC'. The below doesn't work, I think the issue is ...
0
votes
0
answers
22
views
Possible to override plugin function?
I need to override the behaviour of a function in a 3rd party plugin but there is no filter and the function is not wrapped in an...
if ( ! function_exists( 'function_name_here' ) ) {
Is it possible?...
0
votes
1
answer
25
views
Delete/Spam Comment Button
To add a 'spam/delete' button to an individual comment, you can use code similar to this
$link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->...
1
vote
0
answers
15
views
Is there a way to programmatically create multiple pages utilizing the same template but different content from a json file?
I have been tasked with creating geolocation pages that will all use the same exact template. The content writer is giving me all the "text" for the pages (which I am converting to json). I ...
1
vote
1
answer
10
views
Why isn't my `meta_query` array functioning properly?
I am trying to include a meta_query to only show the 'post_type' => 'want-to-sell-post' that have the key 'key' => '_wpcf_belongs_artist_id',.
Right now, all want-to-sell-posts are being ...
0
votes
0
answers
15
views
Filtering custom post pages
I am looking to create a system where I have a custom post type with a bunch pages therein. The custom post pages have a custom category system so I can add categories to each custom post.
I the want ...
0
votes
1
answer
19
views
Send Array from JS to php file then insert it in wp database through a plugin
This's my code it's success but when but I can't the return data from ajax in the same page.
the mechanism is the user click the dropbox button and when he selects it returns dropbox_links and then ...
0
votes
0
answers
10
views
exclude certain categories form archive widget
i need some help for this...i want to hide posts of one specific category from appearing in the (sidebar-)archive-widget (chronological order, dropdown). I already tried to use the "ultimate ...
0
votes
0
answers
6
views
Updating Woocommerce Variation Problem [closed]
First things first: I have a very specific question that has surely NOT been asked yet.
I am developing a plugin where I can create and update Woocommerce products. The creation process of the product ...
0
votes
0
answers
28
views
Custom plugin places html head content in body
I'm currently working on a plugin. I have to render a lot of html on a specific page. I've placed that piece of code in the plugin it's core file, like so:
add_filter('the_content', '...
0
votes
1
answer
14
views
Conditional operator OR not working with custom fields
OR operator is not working for both conditions, only check first value if true then code executed and if first is false then not check 2nd condition and return else output.
I also try with LIKE ...
0
votes
0
answers
20
views
custom add note meta box with add button in wordpress
I'm making a custom note meta box for plugin, and I have a note box input and one 'add' button in the box with. The button saves the text but does not move the text to the notepad but instead stays in ...
0
votes
0
answers
23
views
How to add customized tabbed to WordPress [closed]
How can I customized tabbed like this to my website
Tabbed like
Popular post, music 🎵 ,Latest
I will be so glad if you can help me thanks my website is Legitloaded.com.ng
0
votes
0
answers
19
views
+50
Effeciently adding Checkboxes to TablePress table cells
I’m creating a frontend checklist for a card collection on Wordpress.
I’m combining two plugins. TablePress to create the table and Frontend Checklist to add checkboxes.
The idea allows the User to ...
0
votes
0
answers
12
views
How to enqueue/register JS and CSS files to elementor addon [closed]
Hope you are doing well.
I designed a elementor widget (slider) using slick carousel. when I am inserting the widget in elementor page, it is working fine when opening the page in browser ([screen ...
0
votes
0
answers
9
views
Add multi select dropdown in custom tab in WooCommerce setting programmatically [closed]
I want to add multiselect dropdown in my custom tab in WooCommerce setting
0
votes
0
answers
16
views
Wordpress user role with create user capability?
I want to create a user type (Let’s call it “clinic” which is similar to editor role in wordpress) but with permission to add_users /create_users capability. I wanted to limit that capability of this ...
0
votes
0
answers
15
views
What is the Keyboard shortcut for inline code in Wordpress visual block editor?
I write a Wordpress blog using the Wordpress visual block editor and I think the inline code format is a sweet format to make some inline text appear different.
I was wondering if there's a keyboard ...
-4
votes
0
answers
16
views
I need help on how to Increase website page speed [closed]
please I need help on how to increase my website page speed
https://Legitloaded.com.ng