Title: Stephen's Replies | WordPress.org

---

# Stephen

  [  ](https://wordpress.org/support/users/idiots_guide/)

 *   [Profile](https://wordpress.org/support/users/idiots_guide/)
 *   [Topics Started](https://wordpress.org/support/users/idiots_guide/topics/)
 *   [Replies Created](https://wordpress.org/support/users/idiots_guide/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/idiots_guide/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/idiots_guide/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/idiots_guide/engagements/)
 *   [Favorites](https://wordpress.org/support/users/idiots_guide/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Hide “view cart” button if cart is empty](https://wordpress.org/support/topic/hide-view-cart-button-if-cart-is-empty/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/hide-view-cart-button-if-cart-is-empty/#post-11248117)
 * See Stephen answer on [https://stackoverflow.com/questions/37435060/remove-view-cart-link-which-appears-after-click-on-the-add-to-cart-button-in](https://stackoverflow.com/questions/37435060/remove-view-cart-link-which-appears-after-click-on-the-add-to-cart-button-in)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Google Search Console reported faulty hreflang-Tags on my website](https://wordpress.org/support/topic/google-search-console-reported-faulty-hreflang-tags-on-my-website/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-search-console-reported-faulty-hreflang-tags-on-my-website/page/2/#post-9171973)
 * Hi,
 * Check both apple.com and facebook.com as example.
 * Apple:
 *     ```
       <link rel="canonical" href="https://www.apple.com/" />
       <link rel="alternate" href="https://www.apple.com/" hreflang="en-US" />
       <link rel="alternate" href="https://www.apple.com/de/" hreflang="de-DE" />
       ```
   
 * Apple do not use x-default.
 * Facebook:
 *     ```
       <link rel="canonical" href="https://www.facebook.com/" />
       <link rel="alternate" hreflang="x-default" href="https://www.facebook.com/" />
       <link rel="alternate" hreflang="en" href="https://www.facebook.com/" />
       <link rel="alternate" hreflang="es-es" href="https://es-es.facebook.com/" />
       ```
   
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] I need version 1.7.12 of this plugin](https://wordpress.org/support/topic/i-need-version-1-7-12-of-this-plugin/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/i-need-version-1-7-12-of-this-plugin/#post-8929097)
 * Here [https://plugins.trac.wordpress.org/browser/clean-login/trunk?rev=1604463](https://plugins.trac.wordpress.org/browser/clean-login/trunk?rev=1604463)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] do_shortcode](https://wordpress.org/support/topic/do_shortcode-10/)
 *  Thread Starter [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years ago](https://wordpress.org/support/topic/do_shortcode-10/#post-7633256)
 * OK Thank you.
 * Maybe this only useful for people who are not interested to using shortcode in
   their posts.
 * So the `do_shortcode` need a helper to get the default value of login_url, edit_url,
   register_url and restore_url.
 * I made a little addition to the clean-login.php.
 * After first appearance of `$logoutredirect_url`, add:
 *     ```
       $login_url_man = get_option( 'cl_login_url_man' );
       $edit_url_man = get_option( 'cl_edit_url_man' );
       $register_url_man = get_option( 'cl_register_url_man' );
       $restore_url_man = get_option( 'cl_restore_url_man' );
       ```
   
 * inside
    `if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name]
   == $hidden_field_value ) {`
 * add:
 *     ```
       update_option( 'cl_login_url_man', isset( $_POST['login_url_man'] ) ? get_permalink($_POST['login_url_man']) : '' );
       update_option( 'cl_edit_url_man', isset( $_POST['edit_url_man'] ) ? get_permalink($_POST['edit_url_man']) : '' );
       update_option( 'cl_register_url_man', isset( $_POST['register_url_man'] ) ? get_permalink($_POST['register_url_man']) : '' );
       update_option( 'cl_restore_url_man', isset( $_POST['restore_url_man'] ) ? get_permalink($_POST['restore_url_man']) : '' );
       ```
   
 * Then inside `form name="form1"`, for each variable above, add:
 *     ```
       <label style="display:block;" for="login_url_man">Login Form URL (cl_login_url_man)</label>
       	<?php
       	$postid_url = url_to_postid( $login_url_man );
       	wp_dropdown_pages(array(
       		'id'=>'login_url_man',
       		'name'=>'login_url_man',
       		'selected'=>$postid_url,
       		'show_option_none'=>'Select Login Form URL'
       	));
       	?>
       <p> </p>
       ```
   
 * and so on. for the rest.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress] When SSL is enabled, I cannot edit the settings.](https://wordpress.org/support/topic/when-ssl-is-enabled-i-cannot-edit-the-settings/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/when-ssl-is-enabled-i-cannot-edit-the-settings/#post-7157689)
 * Thanks for the update..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress] When SSL is enabled, I cannot edit the settings.](https://wordpress.org/support/topic/when-ssl-is-enabled-i-cannot-edit-the-settings/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/when-ssl-is-enabled-i-cannot-edit-the-settings/#post-7157593)
 * You can fix it by editing the following file:
 * base/es-defined.php
 * Change the line that read:
 * `if(!defined('ES_ADMINURL')) define('ES_ADMINURL', get_option('siteurl') . '/
   wp-admin/admin.php');`
 * Become:
 * `if(!defined('ES_ADMINURL')) define('ES_ADMINURL', get_option('site_url') . '/
   wp-admin/admin.php');`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issue](https://wordpress.org/support/topic/wp_query-issue/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp_query-issue/#post-7139478)
 * Try this
 *     ```
       <?php
       global $post;
       $EM_queries = em_get_event($post->ID, 'post_id');
       $eventslug = $EM_queries->event_slug;
       $args = array (
       	'post_type' => 'event',
       	'posts_per_page' => -1,
       	'meta_query' => array(
       		array(
       			'key' => '$eventslug',
       			'value' => 'test-fitler-1',
       			'compare' => '=',
       		),
       	)
       );
       $EM_Events = EM_Events::get( $args );
       $events_count = EM_Events::count( $args );
       ?>
       <?php get_header(); ?>
       <?php echo 'Total events: ' . $events_count; ?>
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] EM_Event in header.php](https://wordpress.org/support/topic/em_event-in-headerphp/)
 *  Thread Starter [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/em_event-in-headerphp/#post-7148649)
 * I finally create a dedicated header file. And move the portion of facebook into
   content file.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Miultiple Currencies](https://wordpress.org/support/topic/miultiple-currencies/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/miultiple-currencies/#post-7073765)
 * I manages to hack multi currency on the same/different event. This is incomplete
   stage. The frontend page for users showing two currencies just fine. Users can
   only choose one select area for spaces. Not both. This is on purpose, because
   submit booking will sum both currency with strange price result.
 * There is a checkbox that indicate that the price is in second currency while 
   creating event in admin area.
 * For admin page, still showing default currency symbol, although the price is 
   correct. On EM Pro admin, transaction shows correctly.
 * Need help to completes the codes.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] How to personnalise the order of events list by day](https://wordpress.org/support/topic/how-to-personnalise-the-order-of-events-list-by-day/)
 *  [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-personnalise-the-order-of-events-list-by-day/#post-4974901)
 * I think you need an event search attributes with custom `orderby`.

Viewing 10 replies - 1 through 10 (of 10 total)