[Plugin: Shortcodes Ultimate] Using shortcode in another plugin
-
Hey there,
I love this plugin! Love how the buttons work out. Really nicely done.
Now, I’m no php programmer so I must be doing something wrong here. I have a comparison plugin installed and would like to show the button from Shortcode Ultimate instead of the standard “Read the review” link.
Now, in the php file of the comparison there is the following line, displaying the link:if (!($settings & MYRP_VC_REVIEW)) { $return .= "<a href='" . get_permalink($post_id) . "' class='myrp_review_link'>" . myrp_i18n("Review") . "</a>"; }
Now I thought, if it spits out an \<a\> element, it could probably spit out a shortcode button. So I added it like this:
if (!($settings & MYRP_VC_REVIEW)) { $return .= "[button link='" . get_permalink($post_id) . "' color="#0086bf" size="1" style="1" dark="0" square="0"]" . myrp_i18n("Review") . "[/button]"; }
But it doesn’t work. Anyone know how to do this ideally? Should I use the function instead of the shortcode?
Cheers!
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘[Plugin: Shortcodes Ultimate] Using shortcode in another plugin’ is closed to new replies.