Stephen
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Hide “view cart” button if cart is emptyHi,
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
In reply to: [Clean Login] I need version 1.7.12 of this pluginForum: Plugins
In reply to: [Clean Login] do_shortcodeOK Thank you.
Maybe this only useful for people who are not interested to using shortcode in their posts.
So the
do_shortcodeneed 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.
Thanks for the update..
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
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueTry 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(); ?>I finally create a dedicated header file. And move the portion of facebook into content file.
Thanks.
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.
I think you need an event search attributes with custom
orderby.