km
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Query Loop] Exclude child posts or specific postsThanks Ryan, what if it applied a class to the items in the loop, such as “is_child”, or “postid_123”. And then the exclude setting simply set display:none to those classes, depending on whether “Exclude children” or a “Hide posts from loop by ID” setting was used?
(not sure if that would be less resource intensive?)
Ahh thanks John, yep on the individual Product Page I had to change “Custom shipping options” to “–use profile setting–“. This then seemed to verify correctly.
Thanks!
KimForum: Plugins
In reply to: [Polylang] Language setting lost after visiting english-only pageThanks for the repply Chrysti.
If works fine clicking ‘關於’ (‘about’ in ‘hk’) – as I had manually changed that menu link to the hk/about-3 page.
However if someone who visits the hk page here https://collegiate.tas.edu.au/hk/ – clicks on a link that does not have an hk translation, their cookie then changes to ‘en’.
This means when they visit a page that does have an hk translation, it will not display it until they re-select their translation from the flag dropdown.Is there a way to prevent the cookie being set from just visiting a page? I only want the cookie set when they choose the dropdown… (so they then see pages with their preferred language IF it is available, otherwise they will see the english page)…
Hope that makes sense?
Forum: Plugins
In reply to: [Polylang] Language setting lost after visiting english-only pageI can see the cookie is being set back to “en” every time a page is visited – even if the person previously had their cookie set to “zh”, and the pave they visit has a zh version set..
Forum: Plugins
In reply to: [Polylang] Language setting lost after visiting english-only pageHere is the site: https://collegiate.tas.edu.au
Go to the link above, and set the language to Chinese.
Then visit https://collegiate.tas.edu.au/about/ – you’ll notice it reverts back to English? (even though all the translated versions have been specified in the page settings)Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledWe’re not really wanting to use an archive page for ‘Events’… as we’re displaying Posts (normal posts) and Events (custom post type) on the one page – basically just on index.php with pre_get_posts modified to include both events & posts.
I suppose the easiest fix is just to turn on Translations for “Events” and leave it at that.
Strange that we don’t get the same problem for normal posts, only the custom post type though….
Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledHere’s the query that we use to display the news/events:
function index_filter($query) { if(!is_admin() && $query->is_main_query()){ if($query->is_posts_page){ if($_GET['show'] == 'events'){ $query->set('post_type', array('event')); $query->set('orderby', 'meta_value_num'); $query->set('meta_key', '_ei_start_date'); $query->set('order', 'ASC'); } elseif($_GET['show'] == 'news'){ $query->set('post_type', array('post')); } else{ $query->set('post_type', array('post', 'event')); } } elseif($query->is_search){ $query->set('post_type', array('event', 'post', 'downloads', 'page')); } } } add_action('pre_get_posts','index_filter');
Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledCould it be because we are trying to display the Events archive in a loop on a page?
That page has the language set to “English” – does that mean any loops on that page (pulling custom post types) it will only display posts that have the language set as English too?
Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledIt’s just a custom post-type, not a plugin… with the following settings:
register_post_type(‘event’, array(
‘labels’ => array(
‘menu_name’ => _x(‘Events’, ‘admin menu’),
‘all_items’ => __(‘All Events’),
‘name’ => _x(‘Events’, ‘post type general name’),
‘add_new’ => _x(‘New Event’, ‘event’),
‘add_new_item’ => __( ‘Add New Event’)
),
‘public’ => true,
‘show_ui’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘rewrite’ => true,
‘query_var’ => true,
‘menu_icon’ => ‘dashicons-calendar-alt’,
‘supports’ => array(‘title’, ‘editor’, ‘custom-fields’, ‘thumbnail’, ‘page-attributes’)Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledHmm we are having the same issue again. When we post a new post from our “Events” post type, it doesn’t show up on our posts page – even though it is definitely published.
Here are our settings with all the post-types turned off: https://snag.gy/K4LB9.jpg
I’ve just turned on the “Events” post type, and here is the screenshot of the Events pages listed: https://snag.gy/FVgdr.jpg
It looks like the default language is not being set for the new posts that are created?
I went in and edit the posts without the English language set – and now they show up.
I thought if the “Events” post type is disabled in the first screen then it would assume english as the default language?
Forum: Plugins
In reply to: [Polylang] Custom post type – not showing up when Polylang enabledHi Chrysti,
It’s working at the moment… (however have had a few other glitches, like our Posts page stopped displaying any content). To fix it I just went into the Polylang settings and hit “Save” on each of the pages.
What does the “Synchronization” settings actually do? Should I turn some of these back on?
Thanks!
Forum: Plugins
In reply to: [Polylang] Detect browser language – not re-directing pagesAh, thanks @chrysti… didn’t realise it just re-directed the home page. That explains the issue then ??
Forum: Plugins
In reply to: [WP eCommerce] WP eCommerce logs admin out of dashboard frequentlyIf I change the WordPress site URL to https:// instead of https:// it seems to fix the problem. Previously I had the site being https:// and then had the setting in WPEC to switch to https:// on the checkout page…
Not an ideal fix, but seems to work for now…
Forum: Reviews
In reply to: [WP Fastest Cache] Caused my company problemsWell said CaptainsLog – couldn’t agree more!
Hi Emre,
Thanks for the quick reply. I’ve done as you suggested (deleted cache, deleted plugin, re-installed plugin and activated) – but I still get the same problem.
It still shows up as version 0.8.2.4 on www.ads-software.com though?
What email address shall I send a link with the website URL?
Thanks again,
Kim