WordPress.org

Forums

Network Latest Posts
[resolved] excerpts & pagination (22 posts)

  1. jennybeaumont
    Member
    Posted 2 years ago #

    Me again :)

    It seems like when pagination is active, the titleonly option isn't respected. When I click to go to the next article, it suddenly shows the excerpt, and does again if I use the pagination links to go back to the first article. But when I refresh the page, the excerpt disappears. Small bug fix :)

    thnx,
    -jennyb

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hi again,

    Hmmm I can't reproduce this bug. Could you please send me the options you're using? Because if you check this link Pagination Example - Title Only 2.0.4 it doesn't show the excerpt (as expected).

    Cheers.

  3. jennybeaumont
    Member
    Posted 2 years ago #

    This is the shortcode I used:
    [nlposts thumbnail=true cat='actualites' full_meta=true number='1' excerpt_length=null pagination=true]

    Initially, no excerpt appears. But once you start navigating each page (post) for a particular blog, the excerpt starts appearing. Weird, eh?

    If I add titleonly=true, then it mucks everything up. Thumbnails and pagination disappear.

    thnx,
    -jennyb (aka, the faithful)

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    I didn't get it the first time, what you want is to display the posts with the excerpt, thumbnail and full meta right?

    Are you sure those articles where the excerpt 'disappear' have actually an excerpt? Because when you don't use the auto_excerpt parameter, by default it will search into the post_excerpt field and if you didn't provide one it won't show anything unless you set the auto_excerpt parameter to true.

    Look here Pagination Example 2.0.4

  5. jennybeaumont
    Member
    Posted 2 years ago #

    In my case it's the opposite. I don't want excerpts (well, I may later, but I was just testing the whole pagination thing). When I use the shortcode I posted above, my posts show as desired, just title, thumbnails and pagination. Except that when I start navigating the pages, the excerpts appear. When I try to force the titleonly=true (if i understood correctly, that is the default), then nothing works and I only get titles (no thumbs or pagination).

    thnx,
    -jennyb

  6. jennybeaumont
    Member
    Posted 2 years ago #

    Oh, and what happens if a blog has 100 posts? When does the pagination stop? by date ?

    thnx again,
    -jennyb

  7. jennybeaumont
    Member
    Posted 2 years ago #

    nevermind, i guess you just add the days parameter :)

  8. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    I see, well you can't use the thumbnails without excerpt :).. If you check the code, the thumbnail is used only within the titleonly=false statement, maybe that's why you're getting strange results?.

    As for your question about the 100 posts, the WordPress pagination restrains the length of the links, I haven't tested it yet but I guess it won't display 98 links. I guess I'll have to fix if someone discovers there's something wrong after they've published too many articles lol...

  9. jennybeaumont
    Member
    Posted 2 years ago #

    ahhh, ok. i can prob find a fix using css then.
    thnx!
    -jennyb

  10. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    That's why feedback is so important :)... Now I just realized that I've seen those kind of blogs where the thumbnails are displayed with the titles next to them, I'll keep it in mind for the next release.

    Cheers.

  11. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    You plugin is great and I know it is what I have been looking for. But I have a similar problem to what is discussed here. I just installed the plugin today and I can't get thumbnails, excerpts and pagination. All I get is just a list of article titles. This might be a bug from the latest version because I see nobody seems to have this problem and you just updated the plugin 6 days ago.

    These are the parameters I used:

    [nlposts title="Network Latest Post" instance=MainBlog title_only=false blog_id=1,2 thumbnail=true thumbnail_class=alignleft paginate=true posts_per_page=10 excerpt_length=55 auto_excerpt=true sort_by_date=true sorting_limit=20 full_meta=true thumbnail_wh=150x150]

    Just to add, all the posts in my other blogs have excerpts, but the plugin couldn't pull them so I used auto_excerpt=true and it still couldn't pull them.
    Again I use the IFeature premium theme but again I tried with 3 different Themes but still no thumbnail, excerpts and pagination.

    If I am doing something wrong please help!!!

    Thanks.

  12. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    Just to add, I just tested the widget and it worked well, Titles, Thumbnails, Excerpts and Pagination all worked well, all I will have to do is to customize the css. But it doesn't still work on the page level.

    Thanks again.

  13. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Njualem,

    It's pretty strange what you're telling me, I'm using the lastest version (3.0.8) on my network and it's working just fine, I thought it would be a compatibility problem with that theme but I installed iFeature (the free version) and it's working fine. You can see it here: NLPosts on iFeature.

    I used the same shortcode you wrote up there, just changed the posts_per_page to 1 because I don't have as much articles as you do ;).

    Could you please reinstall the plugin and see if it works?

    Regarding your question about the CSS, if you want to modify the CSS classes, you may add !important at the end of each overriden value I.e: nlposts-content { background: #ddd !important; } that way you force each element to adopt the new style you're giving them.

    It's not too friendly but it's the only way I could create something "good enough" for people without any programming / CSS skills, and still keep it flexible for more advanced users. That's why I encourage people to customize the CSS styles to adapt the results to their themes.

    Please let me know if there's anything else I can help with.

  14. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    Thanks for the quick reply. I have seen your demo site with the IFeature theme, I works just fine but it can't still work for me. I switched my theme to the free version but it still didn't help.

    I also noticed that on your test page, the comment box was active, making it possible for commenting, but on mine, the comment box is not active, could this be a problem with plugins conflicts. I have tried disabling some but still no luck.

    Also to add, I host my website on Amazon Ec2 Linux server and I just updated my server today but still no changes.
    This is a link to my site
    Quickinsider.com
    I hope this helps to give you more insides on whats going on.

    Thanks.

  15. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Njualem,

    It seems like there's a plugin causing problems, if it's not a problem for you, could you please deactivate all your plugins and activate only Network Latest Posts?

    Then, if it works, try to activate you other plugins one by one until it fails, in the hope we can spot the plugin causing this problem.

  16. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hi again,

    I did a quick search to see if anyone else had a problem similar to yours, I found this topic: Shortcodes stop working after 3.4.1 upgrade and there's someone who uses an Amazon EC2 server as well, if deactivating your plugins didn't work, maybe you should try this:

    I'm having a similar issue with WordPress 3.4.1 on an EC2 server with PHP 5.3.14. On 2 separate projects I've had issues not with shortcodes not working at all, but rather with them not parsing arguments correctly.

    I spent a lot of time looking in to it last night and it turned out to be this line of code in /wp-includes/shortcodes.php in the shortcode_parse_atts() function:

    $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);

    In my staging environment this replace is essentially wiping out all of the shortcode arguments. Commenting it out fixes the problem. I've found this issue discussed in several other places but none include a solution.

    If there's anything else I can provide that can help figure this one out let me know.

  17. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    I disabled all my plugins(about 8 of them which were active) and it did not solve the problem, then I followed the instructions on your next post by commenting out:

    $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);

    in my /wp-includes/shortcodes.php and now everything works just fine. It is truly an EC2 issue with WordPress 3.4.1

    Thanks a Million Times.

    PS:
    Just one more little push: I am a complete novice when it come to CSS and all I need now is to control the spacing between the thumbnail and the rest of the text and to give a white background to the widget so as to match my theme's normal widgets. It will be a big push for me if you could give me a basic code structure that I can start with and modify to meet my test.

    Thanks once more.

  18. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Njualem,

    I'm glad you got it working, yes it seems there's something about the PHP configuration with Amazon EC2, well at least it's working now.

    Regarding your question about the CSS, well I've adapted the default style, download it from here: Quickinside CSS, copy all the content and save it as quickinside_nlposts.css inside your active theme's folder (if you're using iFeature then inside that theme's folder), then add this to your shortcode:

    css_style=quickinside_nlposts so it looks like this:

    [nlposts title="Network Latest Post" instance=MainBlog title_only=false blog_id=1,2 thumbnail=true thumbnail_class=alignleft paginate=true posts_per_page=1 sort_by_date=true sorting_limit=20 full_meta=true thumbnail_wh=150x150 css_style=quickinside_nlposts]

    If you want to know what I tweaked inside the CSS style, I just added these lines at the end of the file:

    /* Here I added space to the right side of the thumbnail */
    .nlposts-container .thumbnail img {
        margin-right: 1em !important;
    }
    .nlposts-widget {
    /* Here I add .5em padding to the widget content, then changed the background to white and added some round corners so it looks more like the iFeature theme widgets */
        padding: .5em !important;
        background: #fff !important;
        -webkit-border-radius: 3px !important;
        -moz-border-radius: 3px !important;
        border-radius: 3px !important;
    }

    Hope you find it useful.

    Best regards.

  19. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    I have done as you said above, I uploaded the quickinside_nlposts.css file to my active theme folder but only the padding(spacing) changed, the background still remains transparent and I now have 2 bullet points on each post both on the page and the widget.

    I have spent some time trying to figure it out using the "inspect element" tool on my Firefox but I can't get very far(still a novice).

    Here is the link again: Quickinsider
    If you could share some more light, I would be very grateful.

    Thanks.

  20. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Njualem,

    I see an error in your site, it's trying to find this file http://quickinsider.com/wp-content/themes/ifeaturepro/quickinside_nlposts.css.css?ver=3.4.1 when it should be trying to find http://quickinsider.com/wp-content/themes/ifeaturepro/quickinside_nlposts.css?ver=3.4.1 note the extra .css. Maybe you added css_style=quickinside_nlposts.css instead of css_style=quickinside_nlposts? the css_style parameter just need the filename because it automatically adds the css extension.

    If you access this link http://quickinsider.com/wp-content/themes/ifeaturepro/quickinside_nlposts.css it should display the CSS content but it says error 404. Could you please check if quickinside_nlposts.css is really in there (inside ifeaturepro folder)?

    Let me know if there's something else I can help with.

  21. Njualem
    Member
    Posted 2 years ago #

    Hi Jose;

    You Got It!!! Everything is perfect now. I was using css_style=quickinside_nlposts.css instead of css_style=quickinside_nlposts and out of frustration I had transferred the quickinside_nlposts.css file from wp-content/themes/ifeaturepro to wp-content/themes/ifeaturepro/css but after you pointed this out, I did the necessary changes as you mentioned above and very thing came into place perfectly.

    CSS is something that every serious webmaster on a limited budget should know at least the basics. It transforms things like magic. I am going to give some time to it, to master at least the basics.

    Thanks again for all the time you put in helping me out, it is PRICELESS to me. I pray there be other people out there like you who will sacrifice their precious time to help others.

    Thank you very much, I appreciate.

  22. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Njualem,

    That's great, I'm glad everything is working now. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Network Latest Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.