Passing variables trough 2 pages

I really have no idea what you’re implementing here – I don’t know how a plugin “has pages,” for instance. As such, I’m afraid I cannot offer you much help in the way of an example, but I’m confident that what you ask could be accomplished using the Transients API, or its ascendant the Options … Read more

HTML5 Summary tag in editor

You can use the $allowed_tags global. Add the following to your functions.php file. global $allowedtags; $allowedtags[‘summary’] = array(‘class’ => array()); Add more attributes within the array similar to the class element. You can learn more on Otto’s post here:

How to display many photo albums related to category

To keep it simple and unique I would use a custom post type combined with a custom taxonomy called “Photos”. Registering a custom post type allows you to customize what the input is and the dashboard, along with making it easier to work with code wise, since it is separate from the default “posts”. You … Read more

WordPress Navigation default output

wp_nav_menu is what you are looking for. Here are some examples. Using the depth parameter you can change the level of sub-menu. 0 leads to all levels. Ex. <?php $defaults = array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => … Read more

insert order number into wp ecommerce order confirmation email

In the wp-e-commerce admin, Settings -> Store -> Admin, you can customise the Customer Purchase Receipt (confirmation email) template to add this, e.g. Please quote %purchase_id% as reference when paying by EFT. There are a couple of hooks in wp-e-commerce that let you insert other data into the confirmation emails: wpsc_transaction_result_cart_item — this is called … Read more

WP Login Button for current domain

<?php wp_loginout(); ?> Or <a href=”http://<?php bloginfo(‘url’); ?>/wp-login.php”>Login</a> What am I missing? http://codex.wordpress.org/Function_Reference/wp_loginout http://codex.wordpress.org/Function_Reference/bloginfo

Custom MySQL query to list post

You don’t need to use query_posts function. It could be done without it. Use setup_postdata function to set up global post data. $sql = ” SELECT p.* FROM orders_items oi INNER JOIN products pr ON pr.`post_id` = oi.`product_id` INNER JOIN posts p ON p.`ID` = pr.`post_id` AND p.`post_type` = ‘product’ GROUP BY oi.`product_id` ORDER BY … Read more

How WP decide to show or not to show in admin panel the pop-up window with hint? Need a fix

Dismissed pointers are stored as user meta, you can inspect this for yourself with: $meta = get_user_meta( wp_get_current_user() ); print_r( $meta[‘dismissed_wp_pointers’] ); In your case, the meta might be empty or damaged, to update dismissed pointers for ALL users on your blog, you could run this function (only once): function wpse80084_dismiss_wp_pointers() { $dismissed = array( … Read more