WordPress.org

Ready to get started?Download WordPress

Forums

Single Latest Posts Lite
[resolved] multisite? (19 posts)

  1. mcmikemn
    Member
    Posted 1 year ago #

    Your plugin to show recent posts is one of the few that I found that have coherent instructions, let alone works at all. Thanks for it.

    Are you making a version that will work with multisite? All I want to do is display posts in one category on one subdirectory-site on the home page of the parent site.

    Thanks.

    http://wordpress.org/extend/plugins/single-latest-posts-lite/

    DOH! I just found Network Latest Posts! Installing it now, but I bet it matches the quality and functionality of this one. Thanks.

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for your comment, check my other plugin Network Latest Posts which I built for WordPress multisites.

    Best regards.

  3. mcmikemn
    Member
    Posted 1 year ago #

    Yeah, I just found it. It's awesome. Thanks for your great plugins and amazingly-quick response time!

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Don't mention it, I'm glad to help. Happy blogging!

  5. mcmikemn
    Member
    Posted 1 year ago #

    It does everything it should, but i have a question for you. Viewing a post with appropriate shortcode in it, all the appropriate posts are displayed as I've configured them to display. But viewing that same post on the Home Page displays only the title, none of the contents (i.e., none of the posts). I've even tried inserting the "more" tag after the shortcode.

    Can you think of a way for the *contents* of a post containing Network Latest Posts to appear on the home page?

  6. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    If you want to display full post content where you put the shortcode then you must set the display_content parameter, something like this:

    [nlposts title_only=false display_content=true]

    See example here: Post Content. If a post contains multiple pages, then only the first one will be shown (WordPress offset issues).

    Or if you want to display excerpts you have two options:

    1. Displaying excerpts taken from the Excerpt field:

    [nlposts title_only=false]

    2. Excerpts generated from content (when the Excerpt field wasn't provided):

    [nlposts title_only=false auto_excerpt=true]

    Examples here: Displaying Excerpts

    Best regards.

  7. mcmikemn
    Member
    Posted 1 year ago #

    I didn't explain myself well. I've configured the shortcode to display excerpts of posts from a particular category on a subdirectory site, and when I view the post containing the shortcode, the posts from the subdirectory site appear perfectly, excerpts and all. That's when I *view the post with the shortcode*.

    But when the post with the shortcode is listed on the site's home page, nothing is displayed except that post's title. None of the excerpted posts from the subdirectory site are display at all, when the post containing the shortcode is displayed on the site's home page.

    does that make sense?

  8. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    I see, one question, you're using the shortcode on the homepage also?

  9. mcmikemn
    Member
    Posted 1 year ago #

    hmmm. i don't know the answer. I am using the shortcode (see below) on a post. When I view tht post, the shortcode displays the appropriate blog posts from the other site. When *that post* is listed on the home page with other current posts from this site, nothing is displayed.

    How can i use the shortcode on the home page unless it's within a post?

    Here's the shortcode I'm using: [nlposts title=test instance=test number_posts=5 time_frame=7 title_only=false blog_id=2 thumbnail=true category=share-with-bardo-project display_content=true excerpt_length=100 auto_excerpt=true sort_by_date=true full_meta=true]

    You can see in these screenshots the post when I view it (2 screenshots: the top and the bottom of the post, showing 2 blog posts from the other site) as well as when my home page looks like (you can see this post called "From the Farm" with nothing displaying below it).

  10. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Well, usually NLP is used to replace the WordPress default post feed, so, one thing people usually do is to set a page with the shortcode then go to settings > reading and set a static page as homepage.

    You could also use it as a function wrapped into a page template or in a custom theme. However, that doesn't explain why you're getting such result, if you check my testing blog shortcodes are correctly interpreted: http://testlab.8elite.com/posts/ Posts is the page I set to display the blog's post feed.

    I have also an example of shortcode displaying posts with shortcodes here: http://testlab.8elite.com/advanced-usage/post-content/ there is a post using a shortcode to display other posts which are using shortcodes as well.

    I'm wondering what theme are you using? by the way, I can't see your screenshot, it says I don't have access to it :(.

  11. mcmikemn
    Member
    Posted 1 year ago #

    Well, usually NLP is used to replace the WordPress default post feed, so, one thing people usually do is to set a page with the shortcode then go to settings > reading and set a static page as homepage.

    Ah, that makes sense. This might work for me!

    You could also use it as a function wrapped into a page template or in a custom theme.

    Oh! Good thinking. Thanks for the idea.

    I'm wondering what theme are you using? by the way, I can't see your screenshot, it says I don't have access to it :(.

    I'm using the Gridiculous theme (1.0.6). No access to my pics? Weird, but I shared 'em with you on G+, so you should be able to see 'em now.

  12. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    It's ok now, I could access your screenshots. Well, do you know if that theme displays excerpts generated from content or you must provide the Excerpt content for it to work?

    Maybe that theme is filtering the excerpts before displaying them, I'm going to install Gridiculous on my test blog. If I find something interesting I'll let you know.

  13. mcmikemn
    Member
    Posted 1 year ago #

    I don't know the cpabilities of this theme.

    I made a page with the shortcode and set it as my static home page. It works, in that it displays the blog posts from the other site. This is great!

    Now I have to figure out how to make it display blog posts in category "xxx" on site 2 *and* blog posts in category "yyy" on site 1. I *think* the shortcode should include "blog_id=1,2 category=xxx,yyy" (without the quotes), but when I do it and view the post, i get a blank page (i.e., I suspect a php error is preventing a page from being generated).

  14. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Ok I'm testing that theme and it seems it's working without issues, you can check my feed again: http://testlab.8elite.com/posts/. The shortcode I'm using is:

    [nlposts title_only=false auto_excerpt=true]

    But using more options shouldn't affect the output though.

  15. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    The problem with your approach is it will look for categories xxx and yyy in blog IDs 1 and 2. I would suggest you to set two shortcodes like this:

    [nlposts blog_id=1 category=yyy instance=my-first-blog]
    [nlposts blog_id=2 category=xxx instance=my-second-blog]

    It should make it easier for you to handle and get the expected results.

  16. mcmikemn
    Member
    Posted 1 year ago #

    That worked. The posts from each site are grouped together (they are not chronological, mixing posts from site 1 and site 2 chronologically), but I can live with that.

    I have a general coding question for you. I am not trying to disrespect your plugin or your assistance - thanks so much! But why does no plugin exist that merely changes the home page from displaying blog posts from that site, to displaying blog posts from multiple sites. I would think it's a simple matter of altering a query.

  17. mcmikemn
    Member
    Posted 1 year ago #

    (and by "simple" I mean simple to a programmer, not to me! :) )

  18. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    I will check what's going on with the first approach (using blog 1,2 and category xxx,yyy), actually it *should* work as you meant.

    One problem with the homepage feed is they're usually handled by themes not plugins, anyway I will keep your suggestion in mind for future releases, if there's a way to do so I will add it to the plugin.

    I'm currently working on the next major release, but the TODO list is really long, there are a lot of suggestions, I'm aware there are some annoying features and others aren't easy to customize, hopefully the next version will solve most of these issues.

    Thanks for your suggestion and feedback.

  19. mcmikemn
    Member
    Posted 1 year ago #

    You can always find a way to improve something, but I wasn't complaining about your plugin! It's great and helpful, to me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic