p10design
Forum Replies Created
-
My solution to this issue right now:
Change line 317 (replace $args with $preloaded_arr)
$alm_preload_query = new WP_Query($preloaded_arr);So I did some testing on another site:
My shortcode:
[ajax_load_more preloaded="true" preloaded_amount="12" post_type="doctor" posts_per_page="4" scroll="false" pause="true" meta_key="test" meta_value="test"]
Then I printed the values of $preloaded_arr (line 280). The result is below. As you can see the meta_key and meta_value are there.
Array ( [post_type] => doctor [post_format] => [category] => [category__not_in] => [tag] => [tag__not_in] => [taxonomy] => [taxonomy_terms] => [taxonomy_operator] => [meta_key] => test [meta_value] => test [meta_compare] => [meta_relation] => [year] => [month] => [day] => [author] => [post__in] => [search] => [custom_args] => [post_status] => [order] => ASC [orderby] => menu_order [exclude] => [offset] => 0 [posts_per_page] => 40 [lang] => [css_classes] => )
Then I printed the values of $args = apply_filters(‘alm_preload_args’, $preloaded_arr); (line 315)
The result below does not contain the meta_key or meta_value. Is that intentional?Array ( [post_type] => Array ( [0] => doctor ) [posts_per_page] => 40 [offset] => 0 [order] => ASC [orderby] => menu_order [post_status] => publish [ignore_sticky_posts] => )
Thanks for the explanation about the SEO functionality. No, the current site I am working on does not have trailing slash, I went back and check several other sites, and not having trailing slash seems pretty common.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Incompatible with 4.2.1?I was testing the fix @pandymic posted. And it works, but this plugin has a other issues:
1. The link “title” no longer works because that was removed from WP recently.
2. The link “text” does not work. You can enter the text but it won’t save or show up in the custom field.
3. When you click on the edit button, the popup does not display the values to be edited.
4. I get an JS error every time I click on “insert/edit” link.
Error: TypeError: Cannot read property ‘selectionStart’ of undefinedI was able to fix issue 1 by adding a plugin the re-enables the title field in WP.
I was able to fix issues 2 and 3 by modifying input.js and acf-link_picker-v5.phpHowever I am not sure how to prevent the JS (issue 4), because the popup window expects some parameters that are not not being passed by this plugin.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Incompatible with 4.2.1?The advantage of using this plugin is that you can specify the link text without having to add another field. ACF PRO is worth every penny but the Page Link field does not let you specify the link text, so you would need another text field for that.
Hi Jack,
Thanks for replying! I will keep my eye on future releases.
Thanks!
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] SEO Addon adds the wrong urlThanks for the shortcode. I still cannot get it to work. I am going to try it on another website soon. I will let you know if I have the same issues with the URL.
I haven’t had a chance to take a look at the code that switches the URL, but is it possible that’s accessing a variable that’s set by php? Sometimes php variables change according to server settings/php.ini settings.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] SEO Addon adds the wrong urlAnd yes, I have Pretty Permalinks (mod_rewrite) checked.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] SEO Addon adds the wrong urlMy plugin versions:
Ajax Load More
Version 2.6.3.1Select Ajax Load More: Preloaded
Version 1.1.1Ajax Load More: SEO
Version 1.1.1My SEO AddOn was out of date, so now I no longer get the js error. However I still have both issues happening.
Can you tell me the specific shortcode settings you used on the demo page?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] SEO Addon adds the wrong urlAlso,
It looks like the SEO and the Preloaded options can’t be active at the same time.
If I have preloaded=”true” and seo=”true” I get the following error:
Uncaught TypeError: Cannot read property ‘top’ of undefined
File: alm-seo.js
Line 186:
almSEO.scrollToPage = function(obj){
var top = $(obj).offset().top – almSEO.scrolltop + ‘px’;
$(‘html, body’).delay(250).animate({ scrollTop: top }, almSEO.speed, “alm_easeInOutQuad”);
}Please ignore the post above. There’s an easier way to accomplish what I needed to do.
No problem. I found a way around my issue. You have a $alm_item counter setup, so at least I can check to see what part of the loop I am in, and echo different templates within the repeater template.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Help with Filtering.I will send it via e-mail.
Forum: Plugins
In reply to: [JC Submenu] Not working with "wp_bootstrap_navwalker"This solution also worked for me. Thank you.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Div wrapping li?Thanks. I just wanted to make sure it wasn’t my setup. That will never validate as good html, but not much does nowadays.