jeromeramone
Forum Replies Created
-
Forum: Plugins
In reply to: [SearchWP Modal Search Form] Installed 5.3.2 update and crashed my siteThe same thing happened to me with version 0.3.2 – I had to delete plug-in via FTP to get site back up!
While this is being sorted out, is there a place I can download a copy of the previous version so I can restore search functionality asap?
- This reply was modified 6 years, 1 month ago by jeromeramone.
Forum: Plugins
In reply to: [The Events Calendar] tribe_get_embedded_map does not workhmm, a glance at this forum indicates that almost none of the topics are resolved. Nearly all of them have zero responses. Maybe a waste of time to post here?
Ahh. I have deactivated that plugin, and now ALM works again. Sorry to bug you with that one. How did you pull up that return data, btw?
Thanks!
I tried purchasing/installing/configuring the repeater-theme add-on, and got it working on dev. However, after pushing to live it still isn’t working. I checked out the browser console for javascript errors and saw this:
Every time I click the “Load More” button, it spits out that error again.
I couldn’t find any globals to check from that function. They are completely ignorant of the outside world! I ended up just letting the join happen with every query… performance seems okay for now. I’ll have to keep an eye on it. Thanks anyway!
Ah, of course. When I commented out the is_search() conditional, it worked.
However, I don’t think I want to join the postmeta table every time a post query is run – probably a pretty rough performance hit. Is there another flag I could check for to determine if a query is coming from ALM? (I’d rather stick with my current solution since it’s working and I’m short on time to finish this project!)
Thanks!
I figured this out, kind of – before actually executing the shortcode, I was checking for the existence of posts. That was what was failing, not your shortcode. So this was NOT an ALM issue. Sorry for unnecessarily bothering you!
Might be something subtle about my particular setup. Thanks anyway!
The post type “animals” does have a custom taxonomy (called animal_type), but it also has tags.
Almost – the trouble is, the divs are being output 6-at-a-time – and each of those clusters of 6 are wrapped in a div with the class “alm-reveal” – so the “first of type” makes it so that the first post in each group of six shows the year. So every 6 posts, the year displays…
Any ideas to get around that?
That was the problem… in an effort to simplify it for testing, I just had the template set to:
<?php
echo(“test”);
?>Once I wrapped it with <div></div>, it worked.
Thank you very much for your help.
I added the callbacks code, and now it’s saying “Nothing found in this Ajax Load More query :(“
The shortcode I’m running is just “[ajax_load_more]”
I also tried
[ajax_load_more post_type=”post”]There are definitely posts in the system that are not private or drafts or anything.
My tables have a custom prefix (i.e., the table is not called “wp_posts,” but I’m sure your plug-in takes that into account.)
Thanks again…
At first, I tried this code in a custom template file:
echo(do_shortcode(“[ajax_load_more]”);Then I switched to the default template and just put this in the page content:
[ajax_load_more]Neither worked before I added that javascript file to the header… now they both work.
wp_footer is definitely there. When logged into the admin, I can also see all of the wp-admin-bar javascript and html, which are also added by wp_footer.
btw – I have very few plug-ins installed, but I deactivated all of them except “advanced custom fields” and that didn’t help.
Do you know if there is a way to peek into the workings of wp_footer and see where it is breaking down?
Adding the following code to my script enqueuing function in functions.php did solve the problem and get the plug-in working – but will that be something that might break down in the future when I update the plug-in?
wp_deregister_script(‘ajax-load-more’);
wp_register_script(‘ajax-load-more’, “http://dev.metrostlouis.org/wp-content/plugins/ajax-load-more/core/js/ajax-load-more.min.js”, false, ‘1’);
wp_enqueue_script(‘ajax-load-more’);Thanks!
I’m using the below in my functions.php page to load jquery and a few local js files… could that be conflicting somehow?
add_action( ‘init’, ‘my_script_enqueuer’ );
function my_script_enqueuer() {
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js’, false, ‘1.11.0’);
wp_enqueue_script(‘jquery’);wp_deregister_script(‘responsiveslides’);
wp_register_script(‘responsiveslides’, get_bloginfo(“template_url”).’/js/responsiveslides.min.js’, false, ‘1.54’);
wp_enqueue_script(‘responsiveslides’);wp_deregister_script(‘floatThead’);
wp_register_script(‘floatThead’, get_bloginfo(“template_url”).’/js/jquery.floatThead.min.js’, false, ‘1.3.2’);
wp_enqueue_script(‘floatThead’);
}Should I just manually add that missing javascript file to the header?