481 questions
0
votes
1
answer
40
views
How Can I use i20 Sidebar Widgets WordPress plugin multiple times in my Blog pages?
i installed this wp plugin in my Blog. I want to use this Shortcode plugin multiple times in Category and tag pages but the Shortcode is working Same for all pages. How can I change width and height ...
1
vote
1
answer
60
views
How to create a shortcode for an existing WP plugin so it can echo information in a different part where it is designed to?
I need to be able to display woocommerce category descriptions part above and part below product archives. There are plugins that do this but they display information above and below woocommerce shop ...
-1
votes
1
answer
246
views
Making a wordpress shortcode reusable
I have created a wordpress shortcode which outputs a form. The following is my shortcode
function testcode(){
echo "<h1>TEST</h1>";
}
add_shortcode("test-code","testcode");
What i ...
0
votes
1
answer
50
views
Action hooks in plugin shortcode not working in Wordpress child theme
I'm developing a custom plugin that uses a shortcode to display content on specific pages. Locally I had the Twenty Twenty-Four theme activated for development. While, in production, I'm using ...
0
votes
0
answers
109
views
How to change shortcode after user interacts with front-end button?
I'm using Royal Audio Player as a plugin for a website I'm creating, and I want to have something similar to what this guy created for his Voiceover website.
Essentially, I want text above the audio ...
0
votes
1
answer
155
views
Woocommerce Decline Checkout Process
(Theme: Woodmart)
I have one problem, I would like to have a custom meta field in the database of registered users, where I can set his debt and not let him make an order while he has an outstanding ...
1
vote
1
answer
1k
views
add_ux_builder_shortcode: How to create a custom container element with Flatsome theme (UX Builder) in Wordpress?
How can I create a custom container element with Flatsome theme (UX Builder) in Wordpress?
The following adds an element:
// Add a new custom container to UX Builder
add_ux_builder_shortcode('...
-2
votes
1
answer
321
views
how i can solve this problem on wordpress [closed]
Stack trace:
#0 /home/bonusfunnel.com/public_html/wp-content/plugins/master-popups-lite/includes/class-functions.php(549): implode()
#1 /home/bonusfunnel.com/public_html/wp-content/plugins/master-...
0
votes
1
answer
280
views
Multiple post query with pagination in shortcode
I want to multiple query with pagination of post type POST. I write code but it don't return right post when click for 2nd page or 3rd page. May be pagination is working properly or other errors. I ...
0
votes
1
answer
240
views
How do I get the brand taxonomy slug to build my own url in Elementor loop grid widget
I'm using Elementor Pro, Woocommerce Brands and Search and Filter Pro plugins.
I use the Elementor Loop Grid widget to display all brand logos. But instead of linking them to the brands page, I want ...
0
votes
0
answers
68
views
How to remove square brackets in wordpress post?
I got this echo doo_isset($postmeta,'youtube_id');
and return this result in Wordpress post: [iNJaoIZTHh0]
Can please help me to remove the square brackets for result to be only: iNJaoIZTHh0
I tried ...
0
votes
1
answer
83
views
Changing Author Byline in Post-Meta by Active Page
I am using a newspaper style WordPress theme and the PublishPress Authors plugin. No issues there. ✅
The theme has a post-meta.php file which defines, obviously, how the post-meta is displayed on the ...
2
votes
3
answers
617
views
WordPress Function and Shortcode to show first workday of the month
What I'd like to do is display the date of the first workday of a month unless it's past, then show the next months first workday on a WordPress website using a shortcode.
I'm thinking this could be ...
1
vote
3
answers
90
views
Parse and replace WordPress shortcode containing additional attributes
I need to search in wordpress posts for posts that have the gallery included in the content with the photos inserted from the media library and not attached to the posts (this is the wordpress part, ...
0
votes
0
answers
103
views
How to Dynamically Retrieve ACF Boolean Value in WPBakery Grid template / shortcode?
Setup:
WordPress Plugins: WPBakery
Theme: Highend with child theme
Approach So Far:
Added ACF Field: Successfully added a custom field using Advanced Custom Fields (ACF) and verified the values in ...
1
vote
1
answer
816
views
Create WooCommerce shortcode to display product reviews on single product page
I'm trying to generate a shortcode that gives me the option to display the reviews/ratings of a WooCommerce product anywhere on the single product page.
So far, the reviews are displayed by default in ...
0
votes
1
answer
175
views
How can I solve Fatal error: Cannot redeclare function... in a wordpress shortcode function
`I need to display nested child taxonomies and list its posts.
This is what I am trying to get
Its working, but I need to use the fuction as a shortcode. Getting "Fatal error: Cannot redeclare ...
1
vote
1
answer
1k
views
How to prevent shortcodes from being executed multiple times
It seems shortcodes added to the front page in Wordpress will execute multiple times, possibly this is expected behavior. For example, adding a shortcode called [myshortcode] to the front page, and ...
0
votes
1
answer
67
views
How to Dynamically Change WordPress Page Templates Based on Custom Field Value?
`I'm working on a WordPress project where I need to dynamically change the page template of a post based on a custom field value. For example, if a custom field named "page_template" is set ...
1
vote
1
answer
44
views
One WP Plugin shortcode attribute changes properly, the other one sticks to the first-passed value across whole site
This is a Wordpress with PHP/React Plugin.
There are two attributes that are supposed to be given to the plugin via the shortcode: lang and formType. There are multiple instances of the plugin across ...
0
votes
2
answers
3k
views
Inserting Custom post type in wordpress without plugins
the problem is this (There has been a critical error on this website. Please check your site admin email inbox for instructions.)
I put the code in function.php which this
function create_posttype() {
...
0
votes
2
answers
3k
views
How to display custom Post in WordPress?
I am not sure how to use custom posts in Wordpress. I have tried them with the plugin's but, the problem here is when I have deactivated plugins which are not useful then the related posts are going ...
-2
votes
1
answer
87
views
Use dynamic urls from post page to form page in gutenberg editor
I'm trying to use query parameters to prefill a jetpack contact form on a separate page. It's a woocommerce single product template page with a link like this:
<a href="/inquiry-page?g1811-...
1
vote
2
answers
2k
views
How to search multiple post title in wp query
I trying to fetch wp query using multiple post title but post title or s accept only one parameter.
This is my code:
$post_title = array(
'book',
'car',
'bike'
);
$conditions = array(
...
0
votes
0
answers
86
views
Wordpress Shortcode Code in Functions.php is throwing a Foreach Error
I am getting the following error in one shortcode function that I use multiple times in different ways on my site. Only one of the functions causes an error.
We are using a combination of Wordpress, ...