Quantcast
Channel: Topic Tag: shortcode | WordPress.org
Viewing all 19944 articles
Browse latest View live

Shortcode to embed PayPal Express Button

$
0
0

We have a standard WordPress page that lists multiple WooCommerce Subscription products (monthly vs. annual). We would like to add the PayPal Express Checkout button to this page. Is there a shortcode or some way way to do that? We’re developers, so we can create our own shortcode if we know what we need to do to tie into the PayPal Checkout plugin.

Thanks,
Carl


Error When Using do_shortcode

$
0
0

Hi Everyone,

Very cool plug-in. It works just fine when pasting the shortcode into post content. But when trying to call do_shortcode() from within PHP code in the theme, I get the following error message:
Notice: Undefined index: dae_settings in /(full path redacted)/wp-content/plugins/download-after-email/includes/shortcodes.php on line 334.

Line 334 contains the following code:
$dae_settings = $GLOBALS['dae_settings'][ $download_id ];

So it looks like that global variable does not get initialized prior to usage in this case. In addition to the error message, an incomplete version of the form is displayed, which makes sense, looking at the plugin code surrounding the line where the error was reported. Only the title and primary content text are filled in. Everything else is empty HTML elements.

Please let me know if this is something that I can work around or if it requires an update to the plugin.

Thanks!

Quadmenu shortcode doesn’t insert the menu in the right place

$
0
0

Hi,

I am having issues with the shortcode that Quadmenu comes with – [quadmenu theme_location="primary-menu" theme="default_theme"]. When I add it to the page, the menu doesn’t get inserted exactly where I place the shortcode (as one would expect, based on how most shortcodes work). Instead, the menu gets somehow “ripped out” of the original page structure and placed on top of the page instead, just above the header html element.

Nor does it work if I try to enable Quadmenu using Quadmenu settings. For example, let’s say I leave secondary-menu OFF, but want to enable Quadmenu for primary-menu. So I enable Quadmenu only for the primary-menu location like this. But Quadmenu still gets enabled on all menus I have on my page, even non-primary ones. It’s very strange.

I am using latest version of WP & Quadmenu + Divi theme. I’ve tried installing QuadMenu – Divi Mega Menu plugin, but it didn’t help either.

Also, not sure if it matters, but I am using the new Divi Theme Builder feature to build my header (Divi v4+) + Divi’s regular Menu module to place menu in the right place. What that means is that I can’t just manually place the Quadmenu using header.php file, since the website Header is built using the new Divi Theme Builder.

Regards,
Alex

wordpress 5.3 shows error when use shortcode in page

$
0
0

When I setup WP5.3 in my local and try to add a [shortcode] to one of my page from WP admin. When I try to update shows an error as Updating failed. Error message: The response is not a valid JSON response. . Please help me to resole this.

Thank you for your support in advance.

How do I avoid the wording “FREE” when i dont put the price for a category

$
0
0

Hi,

I have two problems:

1: how do I avoid saying the word “free” when I don’t put the price? If i “hide prices” it won’t show prices at all

2: the shortcode [salon_booking_services styled=true columns=“2” category=“3,4”]
when I put the category service in the category shortcode for example “aromatherapy” the plugin just won’t show. If I edit anything it will show all prices for all services without filter the service I put in the category.

Support of this plugin it’s very poor.
If i dont find help here i think ill move elsewhere. It’s already a lot of headaches with this thing

Why is colon : striped out of url when shortcode used in nav menu?

$
0
0

Any thoughts / solutions on this problem? I’ve created a wordpress shortcode that returns a url (eg. https;//…). It works just fine when placed in content in a post. But if I use the shortcode in a nav menu item it returns the url but the colon : is striped out (e.g. https//… I can’t figure out why the : is striped. Here’s the code:

function photoStorePath() {
global $siteURL;
return esc_url( $siteURL);
//returns https://... if in content, but https// if in menu
}
add_shortcode( "psPath", 'photoStorePath');

Here’s how I’m using it in a WP menu:
https://share.getcloudapp.com/mXumq0xZ

Some front end category pages don’t render if they contain a shortcode

$
0
0

I activated this free plugin and all appeared to be working well, I used the tinyMCE editor to add an image to a category page and it displayed perfectly. It was only some time later that I noticed some category pages wouldn’t render. Debugging the issue I found that the line
add_filter('term_description', 'do_shortcode');
in this plugin’s only file was causing the problem. If I commented out that line, the pages rendered properly.

I suspected that the problem was an incompatibility with another plugin I was using called “Insert PHP Code Snippet”, it was already allowing me to use shortcodes in the category description. The category pages failing to render were pages where the description contained shortcodes. However, before debugging that route further, it occurred to me that this admin plugin shouldn’t really be doing anything when the front-end pages are being rendered. I added the following code at the top of the plugin file and that appears to solve the issue:

if( !is_admin() ) {
        return;
}

I can live with making this small change to keep my site working. Obviously, this is the free version of the plugin, but it would be good to have a permanent solution whenever there is the another update.

Shortcode “columns” not working

$
0
0

Hi,

I made a static opening page for my Storefront theme and I included this shotrcode in the first widget:

[products limit=”4″ columns=”3″ visibility=”featured” ]

Only one product per column is showing. Why?


Shotcode inserted but it doesn’t run

$
0
0

I have inserted this shortcode in body section of Exit popup configuration,
but the popup appears empty:

<div>
<?php echo do_shortcode(“[email-subscribers-form id=”1″]”); ?>
</div>

The same shortcode runs good inside pages or articles.
Thank you

Shortcode add 1 to page

$
0
0

Hi all,
I wrote my first shortcode based on https://pagely.com/blog/creating-custom-shortcodes/
So I added


function members_index($params = array()) {
	return include(get_theme_root() . '/includes/index.php');
}
add_shortcode('members-index', 'members_index');

to functions.jsp and the php-script to /themes/includes.
It all works fine, see
http://website.eftcd.de/test/?lst_id=2
The same script, but then standalone can be found here:
http://website.eftcd.de/wp-content/themes/includes

The only issue I run into is that the digit “1” is added at the bottom, and I can not figure out why.

I checked for three things:
(1) The script is not the problem
I added a test shortcode for an empty php-script, it produces nothing (as should) except the “1” (as shouldn’t). See: http://website.eftcd.de/test2/
(2) This particular 5.3.1 WordPress installation is not the problem. I also added the test shortcode to an empty php-script to another 5.2.5 WordPress installation. The same results, a “1” were there shouldn’t be one. See: https://www.holdmetight.eu/test/
(3) I couldn’t find anything on the issue in Google.

What am I doing wrong? Any help is appreciated.

Best,
Hendrik

[ere_property_gallery] ->property_status not filtering correctly

$
0
0

I have created 2 pages on my site, one for properties for sale, the other for properties for rent.

Note: when I say type, I mean status

I have defined 2 properties (both are published correctly): one of type ‘buy’ (for sale), another one of type ‘rent’. Each category has the same name and slug, all lowercase.

I am using the shortcode directly in WordPress editor (Gutenberg, I guess) but property_status is not working as expected.

The gallery is displayed correctly in both pages.
However, while the “buy” category seems to work, the “rent” category doesn’t (it shows ‘no items found’)

> [ere_property_gallery item_amount=”99″ property_status=”rent”]

Shortcode search form limit customisation

$
0
0

I’ve inserted this plugin’s shortcode using the wp_nav_menu_items filter, and I noticed there are only 3 customisable styles. I really like to use the Dropdown option, but I cannot figure out how to achieve this. Is there any shortcode attribute for such an option?

Please advise. Thank you.

shortcode not working with me

$
0
0

Hello,
i’m using this shortcode
[rpwe post_type=”page” thumb=”false” tag=”95″ exclude_current=”false” date=”false”]
what i’m trying to do is :
call all pages with tag ID is 95, and i want to disable date. but the date is still showing in my page.
In Addition: i want to include the current page in the code ( not exclude it ) but i don’t find the right shortcode to do is.
Can you help me to know this.

thanks in advance.

Shortcode displayed BEFORE content

$
0
0

Hi all,

I have a little issue with my shortcodes which displaying the “return content” BEFORE other pages contents.

ex : hello world [shortcode] –give–> “shortcode return content” hello world

Anyone know how to fix please ?

Thank you

A-Z Is Displayed — But Without Links

$
0
0

Hi. I’ve used A-Z Listing shortcode for years on this page: https://quotes.wiki/tags/. It works flawlessly.

This is the shortcode: [a-z-listing display="terms" taxonomy="tags" numbers="after"]

I’m trying to use the same shortcode on this page https://www.dev.quotes.wiki/tags/ and it only displays the alpha characters — with no links to the tags.

How do I troubleshoot this? Is there a way to send you a screenshot of my editor screen so you can see it for yourself?

Thanks.


Search and display

$
0
0

• When I clic on a Vendor’s profile, I want to see all the products order by name or by category, not by date of the publication.
How can I display the products on the Vendor’s profile by category? Or by name?

• Is there a way to hide on the frontend all products that doesn’t have a Store?

• When I search a product by category, it appears a map with the stores that sell it. Is there a way to show a dropdown and select the store you want?
Here is an example of what I want to do: https://prnt.sc/qcmimb

• There is a search bar only to search stores? (Like a shortcode or code) I want to put it on a page, not on a profile.

Have a great day! 😀

Feeds merged?

$
0
0

Is there a way to merge 3 feeds?

I have blog posts from 3 sources, also I have events from other 3 sources. I would like to use a shortcode for those 3 blogs and a different shortcode for 3 events sources. Is there a way to merge 3 feeds in a single shortcode?

[um_loggedin] shortcode breaks account forms

$
0
0

Hello, I’m using the [um_loggedin] shortcode, But then I cannot add or change profile photo or update profile. And the upload photo button shows the max_files_error. Is this a bug?

[um_loggedin]
[ultimatemember form_id=”592″]
[/um_loggedin]

or

[um_loggedin]
[ultimatemember_account]
[/um_loggedin]

No related posts on existing posts

$
0
0

Hi,

thank you very much for the new version. I had been looking for a substitute for your plugin for a while and found nothing that was as easy and looked as good as yours.

That being said, after installing the new version today, all related posts on existing posts are gone 🙁

Low Content

$
0
0

I have very basic question regarding low Content indicator.
I am using quiz plugin and using [shortcode] for having quiz on specific pages.
If my Page have only shortcode will it be considered as low Content even though the short code is used for text around 300 words?
How search engine sees content on such pages?
Yoast shows 0 words , do search engine sees same?

Viewing all 19944 articles
Browse latest View live