How to call the shortcode directly via php
-
First of all, sorry for my English. I am Brazilian .
I have no experience with php or html, but I ‘m doing my site using the technique “Change codes and see what happens” …
I made a post page using the attributes:
[linkview cat_name=”iFriends” list_symbol=”none” class_suffix=”hlist” num_links=”4″ link_orderby=”rand”]and CSS using:
.lv-link-hlist {
float: left;
}.lv-list-item-hlist + .lv-list-item-hlist:before {
float: left;
content: ” | “;
padding: 0 10px;
}It worked just like i wanted. But now i need to insert linkview directly via php. How to do it? I read on the FAQ that i should use “do_shortcode”, but i have no idea how to do this…
I tried <?php do_shortcode(‘linkview’); ?> and nothing happened. How can i do the same thing i did on the post page?Thanks!!
- The topic ‘How to call the shortcode directly via php’ is closed to new replies.