WP Short Code Help Please
I am using a shopping cart with the Cart66 (lite version) and everything works great except for the return shopping button. This button is supposed to take the user back to the previous page but is taking them to a home page.
I would like to create a shortcode link and button that the customer will click on instead to take them back to where they once came from.
The site is using S2 member plugin, and some how I managed to muster up the code which takes members to their personal page - which they go to on login but also are linked to in the header.
Here is the section of that code in the header:
<div id="navigation">
<?php if (get_option(THEME_PREFIX . "menu_management")) : ?>
<?php wp_nav_menu(array('theme_location' => 'main_menu', 'container_class' => 'menu-header')); ?>
<?php else : ?>
<ul class="menu">
<li <?php if (is_home()) { echo 'class="current"'; } ?>><a href="<?php echo get_option('home'); ?>/" title="Reception">Reception</a></li>
<li><a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">VIP</a></a>
</li>
<?php wp_list_pages('title_li='); ?>
<?php if (get_option(THEME_PREFIX . "twitter_link")) { ?>
<li class="twitter"><a href="http://twitter.com/<?php echo get_option(THEME_PREFIX . "twitter_link"); ?>" title="Twitter.com">Twitter</a></li>
<?php } ?>
</ul>
<?php endif; ?>
</div> <!-- navigation --> I tried this code and added to my functions php file, but it did not work:
function vippage() {
add_shortcode('vip', 'vippage');
return <a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">VIP</a>;
} Anyone know what I might be missing?
I spent 8 hours yesterday trying to figure out how to create this link, lol I have completely reverted back to noob status.
____________________
"May I have ten thousand marbles, please?"
____________________
"May I have ten thousand marbles, please?"
____________________
"May I have ten thousand marbles, please?"
____________________
"May I have ten thousand marbles, please?"
____________________
"May I have ten thousand marbles, please?"
____________________
"May I have ten thousand marbles, please?"