WordPress.org

Forums

Ajax Load More
[resolved] Custom types in custom Taxonomies not loading (12 posts)

  1. alevalentini
    Member
    Posted 1 year ago #

    Hi! Just updated the plugin. I used a shortcode like this:

    [ajax_load_more post_type="articolors" taxonomy="riminisocial" posts_per_page="10" button_label="Altri Articoli"]

    But it just does not load anything. Any pointers?

    https://wordpress.org/plugins/ajax-load-more/

  2. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    Hi alevalentini,
    You need to select at least one taxonomy term along with the taxonomy to in order to use the taxonomy query.

    Does that make sense?

  3. alevalentini
    Member
    Posted 1 year ago #

    It does. Sorry, I pasted the wrong code. I use this:
    do_shortcode('[ajax_load_more post_type="articolosport" taxonomy="icarosport" taxonomy_terms="calcio" posts_per_page="10" button_label="Altri articoli"]'); but nothing happens.

  4. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    Do you happen to have a link you can share?

  5. alevalentini
    Member
    Posted 1 year ago #

    Sure. here
    You can ignore the two termname= and termslug=... I was just testing in order to print the term name for the header.

  6. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, it's possible its not working because there are various JS errors throughout the site.
    http://cl.ly/image/3B2A462Z0a3i
    Which page has the shortcode?

  7. alevalentini
    Member
    Posted 1 year ago #

    The jquery.mobile is known, shouldn't be a problem.

    The other one is strange. The reference error f is not defined is known too, but it should not break your plugin. It work fine here, on main categories: http://www.newsrimini.it/wptest/?cat=2

  8. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, so which page has the taxonomy query not working? Sorry, the page you initially reference did not have Ajax Load More present in the source code.

  9. alevalentini
    Member
    Posted 1 year ago #

    How is that? First link I pasted calls up a php file where I put the do_shortcode I pasted in my second post. That's the point, it doesn't load anything.

  10. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    Did you echo the do_shortcode?
    echo do_shortcode('[ajax_load_more]');

    This page(http://www.newsrimini.it/wptest/?icarosport=calcio) does not have Ajax Load More present in the source code.

  11. alevalentini
    Member
    Posted 1 year ago #

    What are you saying? Who do you think I am? huh? One of those stupid, idiotic developers who forget the basic stuff and goes online asking for help, because they're not intelligent enough to see their own mistakes?
    ...
    ...
    ...
    BECAUSE YES, I AM ONE OF THOSE.

    I'm SO SO SO SO sorry for wasting your time! Sorry, you've been very friendly and helpful. Thank you so much for your help, your time and your patience.

    Sorry again.

  12. dcooney
    Member
    Plugin Author

    Posted 1 year ago #

    haha, no worries at all. In fact I do the same with do_shortcode quite often.

    Happy to hear everything is working for you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ajax Load More
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic