• Resolved projectmunton

    (@projectmunton)


    Hi πŸ™‚

    Great idea for a plugin and very nice work !!

    Just testing it out at the moment but it is not getting all the content contained within my “content” id … it seems to be picking a couple of layers down in my post page (.entry-content) … so it is not collecting all the content from each post … also misses some of the styling as a result.

    I just wanted to see what I could check off / test to get all the content in

    If you need any specific information let me know
    Many thanks in advance

    https://wordpress.org/plugins/infinite-transporter/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter projectmunton

    (@projectmunton)

    Just thinking about my question … might be better to ask …

    How can I specify to have everything within each of my articles #content …
    contained within the .infinite-wrap.infinite-view-1,2,3 etc

    Excited about getting your plugin to work for my site πŸ™‚
    Many thanks again in advance

    Plugin Author TomHarrigan

    (@tomharrigan)

    Hey, thanks a bunch for checking out the plugin! I should be able to take a deeper look into this later today. Just wanted to let you know that I’ve seen your question and I’m happy to help get it running correctly on your site.

    In the meantime, do you have a link I could take a look at? Just want to be able to see the page structure so we can be sure the options are set correctly based on your theme.

    πŸ™‚

    Thread Starter projectmunton

    (@projectmunton)

    Hey πŸ™‚ No worries … and thanks for the quick reply … again great plugin !

    I have been playing around with it today and have just got it to work how i was hoping πŸ™‚ it was a bit of playing around but essentially created a new loop template … added the elements I wanted and used “render” to point to it … so add the below code to the functions.php

    add_theme_support( 'infinite-transporter', array(
        'type'           => 'scroll',
    	'requested_type'  => 'click', // store the original type for use when logic overrides it
        'container'      => 'content',
        'render'      => 'infinite_scroll',
    	'footer'          => false, // boolean to enable or disable the infinite footer | string to provide an html id to derive footer width
    ) );
    
    // Custom Infinity Scroll Loop
    function infinite_scroll() {
        while( have_posts() ) {
        the_post();
        get_template_part( 'infinate', get_post_format() );
    }
    
    };

    Not sure if this is the post efficient way … If you have a more efficient way I would love to try it out πŸ™‚

    Just a couple of questions around the article presented in the loop:

    – Is there a way to specify a category … so only articles from that category show below the initial article?. Even better if there was a way automatically associate the category from the initial article.

    – I see the articles in the loop always starts at the newest article published. Is it possible to start the loop on the article published just before the article being viewed?

    Many thanks again in advance

    Plugin Author TomHarrigan

    (@tomharrigan)

    Cool, the short answer is ‘yes’ to both of those follow up questions. I’ll put together a couple of functions for that when I get a chance. I may need to make a small update to the plugin itself to do this as well. Will update this thread when it’s ready to go!

    Thread Starter projectmunton

    (@projectmunton)

    Excellent, thats great πŸ™‚ … looking forward to testing them out … will really add a great experience for my users … and for users of lots of other sites too πŸ˜‰

    Many thanks again for the quick replies

    Thread Starter projectmunton

    (@projectmunton)

    Hi πŸ™‚ just another quick question … I am doing some testing on 2 local sites.

    On one site when I scroll the URL changes to the full url of each article as I go past … which is what I would like

    But on the other site the URLs show as subpages of the initial post url as I scroll e.g.
    /hello-world
    /hello-world/page/2/
    /hello-world/page/3/

    I cannot see any difference in the output of the code … but would you have an idea why this could be?

    Many thanks again

    Plugin Author TomHarrigan

    (@tomharrigan)

    Hey projectmunton I just released an updated version that should fix that URL updating issue so that /page/# isn’t appended when scrolling through the single posts.

    Also, I added the functionality to have the next post be the post that was published just before the current post, rather than displaying the newest post, just like you said you wanted πŸ™‚

    To do that, your ‘add_theme_support’ declaration should get this new ‘post_order’ parameter and look like so:

    add_theme_support( 'infinite-transporter', array(
        'type'           => 'scroll',
    	'requested_type'  => 'click', // store the original type for use when logic overrides it
        'container'      => 'content',
        'render'      => 'infinite_scroll',
        'post_order' => true,
    	'footer'          => false, // boolean to enable or disable the infinite footer | string to provide an html id to derive footer width
    ) );

    The category filtering will likely get added in a future version, but on line 953 of transporter.php, there if a filter named single_infinite_transporter_query_args that will allow you to modify/add query arguments, so you’d be able to add a desired taxonomy/term via that filter if you wish.

    Plugin Author TomHarrigan

    (@tomharrigan)

    And thanks a bunch for checking out the plugin. Hoping to get some documentation updates in soon πŸ™‚

    Thread Starter projectmunton

    (@projectmunton)

    No problem at all … Excellent news … thats great πŸ™‚

    I will check it out over the next couple of days and let you know how I get on πŸ™‚

    If there is anything specific you want me to check let me know

    ‘wrapper’ => false,

    use this option, for URL updating issue (so that /page/#)

    But i have a problem, the loading animation does not work for me, could you tell me what’s could be wrong?

    Hi Sir,

    How can I adjust the plugin to load the next post before it reaches the bottom of the page?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Container Q’ is closed to new replies.