• Resolved ArmandoPenblade

    (@armandopenblade)


    Using the latest version of the plugin and of WordPress. I’ve validated that it’s Network Activiated, and tried both a relatively complicated shortcode block (see below) and a basic [nlposts]; neither displays content.

    We’re a private blog network (requires login to view any content), but the posts in question are “public”/”published” from a blog on the network, while the shortcode is being posted to another blog on the network.

    The posts in question are on a user’s blog, while the shortcode is being used on the “main” page of the network.

    Shortcode is below:

    [nlposts title=”The Cohort’s Latest Posts” number_posts=1 time_frame=30 title_only=false paginate=true posts_per_page=25 display_content=true auto_excerpt=true sort_by_date=true sorting_order=newer sorting_limit=52 full_meta=true]

    It’s worth noting that the shortcode does work on another network installed on the same domain (/blogs-2014 works; /blogs-2015 does not, both are running latest version of Plugin & WordPress and should be configured–more or less–identically as subdirectory Networks w/ similar or identical plugins and network settings).

    —-

    Edit: I do see that in the shortcode builder, no blogs are “selectable” as viewable or hideable, whereas on the other network where the plugin does work, the individual blogs are listed. SO, my guess is that this plugin does not “see” the other blogs, although I am unsure why.

    —-

    Edit 2: Discovered issue: the blogs with posts on them were not set to “Public” in Network Admin > Sites > Edit. This was set on previous blogs on working network. Unsure why this setting was not on for the newly created sites, but it’s possible I may have set all 49 to public manually last year. I’ll do so for the 52 sites this year now. If possible, I’ll mark this resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello @armandopenblade,

    Network Latest Posts currently works with public blogs only, you could tweak the source to make it work with private blogs until the next version has been released. I’m wondering what are the visibility settings for your network blogs, there are 6 types:

    – public
    – archived
    – mature
    – spam
    – deleted
    – invisible

    You could tweak Network Latest Posts to pull posts from blogs with different visibilities, please visit this link where you’ll find the lines to be modified:

    https://github.com/laelitenetwork/Network-Latest-Posts-3/blob/master/network-latest-posts.php#L338

    For invisible blogs this is the SQL code:

    public = '0' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0'

    There’s another thing, number_posts are the total number of posts to be queried for, so if you set it to 1 then paginate and other options will not work, you should try instead the shortcode below:

    [nlposts title="The Cohort's Latest Posts"
              number_posts=100
              time_frame=30
              title_only=false
              paginate=true
              posts_per_page=25
              display_content=true
              auto_excerpt=true
              sort_by_date=true
              sorting_order=newer
              sorting_limit=52
              full_meta=true
    ]

    Finally you could also try setting the blog_id parameter to pull posts from specific blogs only.

    I hope this information helps.

    Thread Starter ArmandoPenblade

    (@armandopenblade)

    Thank you for the heads up regarding the mod to the plugin, that will be helpful as well!

    Aside from that, I had “number posts=1” because my reading on it was that it would only allow a single post from any given blog to appear in the listing, while the “sorting_limit=52” would allow up to 52 total posts to be in the roll-up.

    It’s a moderately important goal; we have 52 contributors in the network, and I’d like the “Latest Posts” to actually consist of the latest single post from each contributor, sorted by date, so that more frequent posters don’t “overwhelm” the less-active members.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Posts Not Displayed’ is closed to new replies.