Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Author Parameter Overriding Post Type Parameter

  • Resolved byronj

    (@byronj)


    Hi, first off excellent plugin!

    Whenever I set an “author” id parameter in the shortcode, it overrides my “post_type” parameter by showing all posts by the author and not just the designated post type posts.

    I would like for the results to show all custom post type posts by the author. Is there something I’m missing to make these arguments work together as opposed to overriding each other?

    Another note, if I remove the author parameter, I do receive all posts from the designated post type.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dcooney

    (@dcooney)

    Hi @byronj,
    I’m not able to reproduce.
    I just tested the following shortcode on a dev site and it worked as expected.
    [ajax_load_more post_type="movie, layout" author="1"]

    Not sure why that’s happening for you.

    I’m not sure either. I will see if something in my template is interfering and report back when I find something.

    Thanks for checking.

    Plugin Author dcooney

    (@dcooney)

    Cheers, will mark as resolved for now.

    Just wanted to confirm that there was a function in my theme modifying “pre_get_posts” and this created the issue I was experiencing.

    Thanks again for the quick response.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Author Parameter Overriding Post Type Parameter’ is closed to new replies.