^^ Now I have, and they all are by you =)
Anyways, do you have a solution for this?
We have no idea what you are asking.
We?
well okay, here you go. I have a short code (that can be placed in posts/pages etc) I want to place that in my php as HTML instead. It’s as simple – how do I convert the short code to HTML so I can place it in php.
Surely we have also found such so ‘simple’
How can you not understand this?
This is a similar topic
http://wordpress.org/support/topic/why-dont-shortcodes-work-in-sidebar-widgets?replies=3%29
Except this person is trying to put it in a widget, where i’m trying to put it on my homepage
Okay, honestly. If your not helping or not volunteering, or don’t know the solution to the problem, please don’t reply. Your really getting annoying now.
You can place
<?php echo do_shortcode('[slider3d_gallery 2000 /]'); ?>
http://codex.wordpress.org/Function_Reference/do_shortcode
If you really want a static html, place this shortcode in post, then copy/paste the part of an html code that produced by shortcode from a page source.
When I put it on a page/post, it works like a charm.
When I put
<?php echo do_shortcode(‘[slider3d_gallery 2000 /]’); ?>
in .php, nothing appears. No errors either.
Try plan b (copy/paste) 🙂
Unfortunately, I can’t test this plugin now. But do_shortcode() must work. Check if the code is correct.
I don’t know why it isn’t working and I’m not very good with the source code thing (there is just too much). Not sure, could you check into this for me?
Okay, I tried this again.
I added this on front-page.php at the location I wantd it to be.
This is what I added:
<?php echo do_shortcode(‘[slider3d_gallery 2000 /]’); ?>
Now instead of having the actual plugin display there, it displays this as a text: [slider3d_gallery 2000 /]
I have checked the code many times now and it is definitely right, I have tried the same code in pages and it works.
What is wrong then?
Now instead of having the actual plugin display there, it displays this as a text: [slider3d_gallery 2000 /]
That means it can’t pull the code in.
Where are you getting slider3d_gallery? Is it from a plugin? Which one?
Not all shortcodes work outside posts.
ehh smart guess.
Yes, I’m using slider3d_gallery.
I don’t mind using something similar that would work.
I just like the animations of slider3d and it’s exactly how I want.