Shortcodes show up as text on page - wordpress

For some reason, some of the shortcodes of some of my plugins show up as text on my pages. Could somebody please provide me with possible reasons why this is happening. The main plugins which are causing problems are:
https://wordpress.org/plugins/users-ultra/
wordpress.org/support/plugin/front-end-pm
I have also used the plugins individually, deactivated all of my other plugins one by one and they still show up as text. Any help would be greatly apreciated.
Thanks

This should help you:
do_shortcode('[shortcode]');
Put this in your theme file where you want the widget/what ever it is you want to do to appear.

I've tested the two plugins in wordpress 4.0 and it works fine.
Did you try to update your wordpress version?
If the problem persists, try to switch to the Twenty Eleven theme to see if it's not a theme-specific problems

Make sure you are editing in the text tab, and not HTML.
You can go to the HTML Tab and see if its wrapping your shortcodes in tags, as this has caused problems for me in the past.

Cut the shortcode from the "Visual/HTML" tab and pasted in "Text" section then updated Post.

#Kristofer is correct if you're looking for a template-based solution, except it needs to be
echo do_shortcode('[shortcode]');
not just
do_shortcode('[shortcode]');

It will just display as text if the shortcode is not correct. For example, in the Tag Groups plugin, the premium shortcodes will not display anything.

Related

How to locate changes to code for missing post titles in archive pages in wordpress?

I am trying to restore the missing titles to posts in my categories, tags, search pages.
I vaguely remember changing something but don't know where. It was a long time ago.
The problem is so bad that if there is no 'read more' button, you can't click on a result to go to the page.
Any tips about how to find where this code change would be located?
Thanks.
if you know what the code was there is a plugin called string locator (https://wordpress.org/plugins/string-locator/) it allows you to give a small snippet of code or a call and it will tell you every place that code is found in the entirety of WordPress.
OK after quite a while of various methods, I re-installed the plugin 'yellow pencil'. I had made some customizations that the plugin claims to be reversible at the click of a button globally (It didn't delete them). I found a post title that did appear and then reverted all customizations globally to it on a live category page. Thank god it all works as it should now!
Thank you to all that tried to help me.

Featured Image doesn't show on the Product page

I'm struggling with my wordpress page, with woocommerce. The featured image should be showing as the first image on the product page, but isn't. I've read a few other threads, like this one:
Product Images don't show (Woocommerce)
where they have some solutions, but the CSS they are proposing isn't working.
My page is here: www.byjgk.com , and for example, if you check out a product category page, like: https://www.byjgk.com/product-category/dresses/ , and then select a dress (e.g.: https://www.byjgk.com/product/the-jersey-maxi-dress-petite-in-sandstone/), you should then see the same featured which was on the category page also appear as the first image on the product page as WELL/(in addition to the other 3 images that are there).
Normally, that's how the image feature works, so there must be some opacity/other problem.
I also did try changing the woocommerce.css file, (which was also a suggestion in the link above, to put this there:
.product.has-default-attributes.has-children > .images{opacity :1;}
but i didn't see any class called exactly that with the word "children".
I also tried to put the "jquery" that was suggested:
$('.woocommerce-product-gallery--with-images').css('opacity', 1);
into the functions.php section, but it said this query had some sort of error, or it didn't like the "$" maybe...
Soooo, I'm at a loss. please help. I see a few people have asked about this on some other forums, but many don't figure it out.
thanks!
Okay, after some trial and error it seems like one of my own plugins was causing this conflict. If anyone is using this plugin, be aware of the potential - i haven't yet played with the settings on this pluging to see if that's changable.
https://wordpress.org/plugins/gallery-slider-for-woocommerce/
I would suggest you to update the theme, plugins and wordpress as well because something is not working properly for you, if the problem continues, start deactivating the plugins to understand what is causing this problem.

Search wordpress for outdated html buttons

I have hundreds of posts on my wordpress site, many of which contain outdated ejunkie buttons I added with html code. How can I search my wordpress site for this html so I can remove the outdated button code?
Thank you!
Here is an similar Question: https://wordpress.stackexchange.com/questions/188384/how-to-mass-delete-one-line-from-all-posts
The answer should be suitable for your problem.

Wordpress page showing html tags

I have recently been working on WP site. And I have faced some strange issue. After I put some text in page and after I click update wp mess up the page by displaying html tags. Image below
Does anyone have faced same issue and how to fix it. Thanks
I'm going to take a wild guess that you've pasted your HTML code into the 'Visual' editor, and not 'text' - give that a go instead.

How do I modify my theme in response to Wordpress 3.4 changes to image caption?

The Wordpress 3.4 release included some significant changes to how attachements with captions are handled. Specially, the mark up inserted by the attachment button has changed from this
[caption id="####" caption="caption goes here"]<img.....>[/caption]
to this
[caption id="####" ]<img src="abc">caption goes here[/caption]
As a result my theme is broken.
I understand that theme designers may need to update their themes in response. But what needs to be changed?
I have a custom theme on my wordpress site, so can't simply click to update the theme. I will need to make the necessary changes myself, but what do I need to change? What hooks or code in the template am I looking for?
Nacin recently posted about this in the WordPress.org forums. Your best bet is to contact your theme author, and let them know the issue that you are having -- I'm sure they are already aware of it.
Hello everyone.
This is a deliberate change in WordPress 3.4. Instead of having caption="" as an attribute of the [caption] shortcode, WordPress inserts the caption into the main content of the shortcode, after the image and in between [caption] and [/caption].
This change in 3.4 was necessary to allow for HTML in captions. But, like everything we develop, it was deliberately coded so it would be backwards compatible. Any theme using the 'img_caption_shortcode' filter to override how a caption is generated would work swimmingly, even though the format changed.
If I had to guess, the common issue for all for these themes is that they call add_shortcode( 'caption', 'some_function_in_their_theme' ); to customize the caption, instead of using the aforementioned filter. This is wrong. Themes should not be doing this. If the theme you are using does this, please contact the theme author. If they disagree it is a problem with their theme, I'd be happy to explain it to them.
I came here after seeing a bug report, but note that after two weeks and 2.5 million downloads, this is the only thread I've seen on this issue, so thankfully it does not appear to be adversely affecting many sites. I'm sorry if it has affected you. If you do know of any other threads, please link them to me.
Thanks,
Nacin

Resources