jorge-vitrubio
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts From Category] Post From Tags forked from this projectmoved Plugin repo from
https://gitlab.com/jorge-vitrubio/posts-from-tagsURL to https://gitlab.com/jorge-vitrubio/posts-from-tagForum: Plugins
In reply to: [Yoast SEO] Update 1.7.3 still not working with Polylanghere some ideas
it is in this file of Polylang, just comment the lines and wait for solution or disable Yoast SEO for a while.
Forum: Plugins
In reply to: [Polylang] WP-Seo by Yoast-update – PolyLang errorsI did coment those lines and i dis resolve the problem so whenever Polylang o YOAST solves the problem in next upgrade it should work.
it is related to language from content which I can pass out.
I’ve updated the plugin but it was not doing properly for what I needed so I will check the whole code for my template and afterwards will tell you.
thanks again
jorge.Hello Darren
sorry but the parameter lang is not useless when querying a custom post type… I’ve just hardcoded it as explained here and works:
<?php $loop = new WP_Query(array('post_type' => 'CUSTOM_POST_TYPE', 'lang' => 'TWO_LETTER_LANG_CODE')); while ( $loop->have_posts() ) : $loop->the_post(); ?>
I just need to know how to put it in the loop properly
sorry for the late reply, I couldn’t find time
I had the site with access only to registered members and it did work but after I opened it to all access it is not working any more.
I wanted to check if it was my mistake before writing you.
thanks for your effort
jorge.
Forum: Plugins
In reply to: [Polylang] polylang and ajax load more (alm) not parsing taxonomies properlysolved on the Ajax Load More thread
https://www.ads-software.com/support/topic/alm-and-polylang-loading-all-posts
Hello Darren
I have find the solution but, i believe you have to code it on the next version of ALM.
on the file
ajax-load-more.php
I’ve commented this
//$lang = defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : '';
and queried polylang language
$lang = pll_get_post(('pll_current_language'));
I don’t know how to make it work in the way that it will recognize whether we have one plugin or the other or even better, use the wp language variable.
thank you for your great plugin, marking it as resolved
cheers.
I keep on searching the solution, mean while I found this reply that might help with custom post / taxonomies and Polylang
https://www.ads-software.com/support/topic/pods-integration-with-polylang?replies=21#post-3712356
And here, with another plugin, is the same issue that I have now. and the author found a solution… hope it helps.
Hi dcooney
first, thank you for your help and cool plugin.
in the Polylang plugin, for what i see, the language is retrieved with pll_current_language() [1]
pll_current_language($value);
‘$value’ => (optional)
either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’`returns either the full name, or the WordPress locale (just as the WordPress core function ‘get_locale’ or the slug ( 2-letters code) of the current language.
best
jorge.[1]https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] custom term loadertx, I got it also, I was mistaken.
very fast your help and nice plugin.
cheers
jorge.