Any Loop
Live DemoScreenshots Changelog

1.0.5

  • Better description of how to exclude tags

1.0.4

  • Change masonry selector to article, instead of .post, to accommodate post-type plugins that aren't using post_class(); function

1.0.3

  • Fix thumbnail in shortcode

1.0.2

  • Fixed shortcode output

1.0.1

  • Bug fixes

1.0

  • Initial release

Rank post loops got you down? Supercharge your site with AnyLoop!

AnyLoop is a post loop section that you have full control over. You can decide what how many posts show, in any order, from whatever category, with whatever tags, from any author, including custom post types! On top of all this, there are 3 different modes to display the posts, including a handy dandy shortcode for use in a widget.

Features

Three Viewing Modes display posts in a short listing, with the recent posts shortcode. Alternately, show recent posts using the section itself. Or, display the posts in full, with comments that open in a drawer without a page refresh. You can also toggle Grid Mode, and will show the posts in a grid with masonry and with built in sharing functions.

Social Sharing Grid Mode has built-in sharing functions that slide into view allowing viewers to instantly share to Twitter, Facebook, and via Email. More social sharing features are on the way!

Hide Stuff Tailor the section to whatever application you’d like to use it for. You can choose to hide the title, date, content, comments, and more providing you with full control over the appearence.

AnyRecent Posts Shortcode Swap out your sites main loop for Any Loop and use full posts mode to make AnyLoop your sole loop provider. Extend this even further with the AnyRecent Posts Shortcode. Place this shortcode into a text widget and utilize recent posts in a sidebar alongside using AnyLoop as the main loop! Use the shortcode as its default state to show the last 5 recent posts, or extend the shortcode with any of the 5 attributes available.

[[anyloop-recent limit="" category="" tag="" author="" cpt=""]]

  • limit = number of posts to show
  • category = category of posts to show (multiple by comma)
  • tag = post to show via tag (multiple by comma)
  • author = post to show via author (multiple by comma)
  • cpt = post to show via custom post types (multiple by comma)

Tips for Use

  • To use as the main loop for your site, swap out all instances of PostLoop for AnyLoop, in Drag and Drop in PageLines WordPress admin. AnyLoop will then be used for all posts, single, and archive pages.
  • Use the section to show posts from a specific category in grid mode in the content, then clone the section and use it to display something different in the sidebar. AnyLoop will work in any content area.

Support

Please do not leave a review as a support question; they are for reviews. I am not notified of these reviews, and I have no way to respond to you. Please do not email me for support, because you will not receive a reply.

Support PageLines Development A majority of funds from Store purchases go to the developer of the extension.
Note PageLines Framework version 2 or better is required to use this extension.

Click To Add A Review ↓


Submit your review
* Required Field

Great addon

Jan 04, 2013 by Sidian

Nothing much to say here, it works great, looks great, I'm very satisfied with it.

http://www.OpenSourceReligion.com


PageLines , USA 5.0 5.0 1 1 Nothing much to say here, it works great, looks great, I'm very satisfied with it.
Support for store products is hosted on the PageLines Forums. The comments below are for Pre-Sales questions only.
158 comments
marijnacht
marijnacht

is it possible to have two columns next to each other each having it's own categorie?

kedark
kedark

Hi, great plug .. but why using it in the category pages by typing in the next link - displays all other categories (or those that have limited options in the settings page) Too bad it does not work like that displays category PostLoop given in the link. Maybe it would be worth it to improve, especially if the use of multiple categories of alerts ...
Regards, Kedark

angeladawnscheffer
angeladawnscheffer

Hi there, I'm trying to use this inside a page template and it won't allow me to post by authors only..or categories.  Not sure if I am doing something wrong? Thank yoU!

dreamsightUK
dreamsightUK

Works an absolute treat, love it! Just real quick, is there a code to display thumbnails in columns in the grid?

dreamsightUK
dreamsightUK

Hello Nick,            

We’ve just purchased your Anyloops plugin for web design here & we’re having a hard time installing it. Firstly, through WordPress we’ve tried going through the standard ‘Add New Plugin’ and locating the .zip file to upload but only to receive this outcome: Unpacking the package…

 

Installing the plugin…

The package could not be installed. No valid plugins were found.

Plugin install failed.

 

Failing that, we’ve also tried going through FTP and transferring the folder straight into WordPress plug-ins and still nothing is showing. Has this happened before? I’m not sure what I could be missing. Looking forward to hearing from you.

 

nphaskins
nphaskins

 @dreamsightUK THis isn't a plugin, it's a section. It goes into the plugins/pagelines-sections folder, or use the section uploader in wp-admin.

dreamsightUK
dreamsightUK

 @nphaskins  @dreamsightUK ahhh, thats great, sorted! silly me. i was recommended this section for adding individual content to four different category pages - i've replaced postloop with anyloop on each of these pages, and set the first page up with the category. but it's now put the same content on the other 3, wherever anyloops is. could you point me in the right direction of how to do what i intended? to get individual/different text and categories for each of the pages, thanks nick

nphaskins
nphaskins

 @dreamsightUK You only need to replace the loop across the site if you want to use the section AS the main loop. For your needs, you can use the shortcode on pages to generate whatever look you're going for, or you can use the section on a page to force that look .Shortcodes will likely be easiest.

marilynwo
marilynwo

Hi Nick,

Before I purchase, I would like to check if there is an option to set external url links instead of sending the reader to the post page. Like right now by clicking the featured image and title, the reader will go to the blog post. I would like to set custom url for them instead, let me know if it's possible, thanks!

nphaskins
nphaskins

 @marilynwo ya by default they link to their respective posts, and there's no built-in options to change that.

Yayita
Yayita

Also want to ad the responsive slideshow but I dont know how to add several images. Thanks

 

Yayita
Yayita

Thanks Nick for your quiick response...I see the (PDF Viewer)  in firefox but not when I check the page in safari....do you know why that is?

angeladawnscheffer
angeladawnscheffer

Hi there,

I have this plugin in the sidebar on my main blog http://www.boastandblush.com.php53-6.dfw1-1.websitetestlink.com/  and when you click on an actual post..the loops do not populate. Unless you actual set the loop on that post, which would be kind of crazy to have to do for every post? Am I missing something?  Under 'page options' -- 'site defaults' I set the loop to feed universally but it just isn't working. Thanks!

Alanmcd
Alanmcd

Hi Nick,

Just trying to change the background color on anyloop.  Firebug seems to suggest this

#anyloop .anyloop-full-posts article, .anyloop-full-posts.any-clone article {background: none repeat scroll 0 0 #888888}

but I must be missing some detail in the code.  Any ideas?

The page is http://foothillstorm.org.

Thanks

nphaskins
nphaskins

 @Alanmcd Yup that's it, but just have to be more specific in your rule.

 

Try #anyloop article {background:#888;}

 

You may have to declare !important as that rule above may not be specific enough.

 

P.S - The background color of AnyLoop, matches itself to a shade lighter/darker than your sites background color. So try changing your sites background color to black (using Color Controls), and you'll see the article color lighten up.

Alanmcd
Alanmcd

 @nphaskins That did not work.  I put in

#anyloop .article {background:#888888 !important;}

with no change.

 

The funky site design is messing up what I can easily do as the home page needs to be black with all the rest white.

Alanmcd
Alanmcd

 @nphaskins Thanks for your time Nick.  I found my problem was with a bit of Banner padding code I had added to the custom code area months ago.  It was causing a LESS code error that appeared with the new update to Pagelines.  Removing it fixed this and another problem as well.

Thanks again.

nphaskins
nphaskins

 @Alanmcd Where are you adding it? Do you have a link to your site?

Alanmcd
Alanmcd

 @nphaskins Sorry, I copied wrong.  I did put #anyloop article {background:#888888 !important;} with no effect.

nphaskins
nphaskins

 @Alanmcd Do not include the period before article. Copy just as I have it above (which does not have a period before article). It's not a selector, its an element.

Alanmcd
Alanmcd

 @nphaskins OK I have #anyloop .article {background:#888888 !important;}

Still no effect.

nphaskins
nphaskins

 @Alanmcd do not include the period before article. Copy just as I have it above.

Jens Korte
Jens Korte

Hi Nick, I'm not able to exclude a post by tag.

I have one post that I want exclude from showing up in Any Loop. I tagged the post with 'dontshow'.

When I put 'dontshow' in the "Include these tag(s)" field only the one post shows up.

If I do the opposite and put 'dontshow' in the "Exclude these tag(s)" field the post shows up with all other posts.

(yes, I deleted the tag from the include field ;)

Any idea? Thanks,

Jens

nphaskins
nphaskins

 @Jens Korte Hi, to exclude tags list them with the tag ID. This was not clean in that area's instructions, so I updated the instructions and this will be out on the next update. To retrieve the ID for the tag, click into Posts-->Tags, click on the tag, and then  you'll see the ID in the browser bar. I tested this here locally and works perfectly, when using tag ID's. Sorry for the confusion.

bsantschi
bsantschi

Hi Nick, just bought your very interesting plugin. How to place an anyloop section on the blog post page showing only posts of the same categories as assigned to the single post on display? ("related news")

nphaskins
nphaskins

 @bsantschi Hi, to use AnyLoop as your main loop, replace the LOOP section, with AnyLoop. To use it on it's own to display categories, just put the section on any page and fill out the category slot.

bsantschi
bsantschi

 @nphaskins That's it: How to fill out the category slot so that only posts of the same categories as assigned to the single post on display are shown (current single post categories)?

nphaskins
nphaskins

 @bsantschi The section cannot magically populate categories. The basis of this section, is that it uses a standard WP Query to fetch the posts. Here's a list of all the available args for that Query.

 

https://gist.github.com/2023628

 

If you notice, the categories area right?

 

'category_name' => 'whatever'

 

This area cannot magically populate on its own, you have to tell it what categories to show.

 

What you're asking can be done now, with the section, and shortcode  together. Simply put the section in the category area in drag and drop, and tell the section to use "pasta" as the category. Then, all you have to do is place the shortcode in the sidebar, and tell it to use the "pasta" category as well. 

 

It's really simple to achieve this, but you have to tell the section/shortcode what category to use.

 

Does this make sense?

bsantschi
bsantschi

 @nphaskins Too bad! Then I guess I won't be able to use anyloop. Unless, of course, you could implement this functionality. I give you an example of what I want to do: cooking site, front page blog with all kinds of recipes, you then click on the one for spaghetti alla xyz, which has the category "pasta" assigned to it. Then you would see this recipe and below that in a content sidebar (or in some other widgetable area) you'de see other recipes from the "pasta" category. You see, I think I'm actually not asking for something terribly unusual.

nphaskins
nphaskins

 @bsantschi Hi. You'll need to manually input a category, otherwise it will just show the recent posts from all categories.

bsantschi
bsantschi

 @nphaskins yes, that's what I'm trying to accomplish. What's the shortcode for the current categories (same categories as the main loop single post) then? Above I only see a version that can be used if the category to display is already known when setting up. But as I pointed out, it should adapt to the one(s) assigned to the single post on display.

nphaskins
nphaskins

 @bsantschi There's no way for sections to "talk" to each other and work in tandem. You can use AnyLoop for the main post display, then you can use the shortcode version to display posts in the same category as the main loop in the sidebar. If that's what you're asking?  Hope this helps.

ccowell
ccowell

Hey Nick, Great plugin! Everything seems to work fine except for the grid view. All the posts are aligned in one column. How can I configure the post to display in 3 or 4 columns?

nphaskins
nphaskins

 @ccowell Yup try playing with different article widths. There's an option for this. It's really going to depend on the size of the container that the section is sitting in, as to how many columns it will produce.

ccowell
ccowell

 @nphaskins  I am using the default (200px) and I'm using a full-width container of 960px. I also tried the Magazine and Blog layout to no avail. I am also using the Transparency theme if that helps.

ccowell
ccowell like.author.displayName 1 Like

I upgraded to 1.0.4 and that appears to fix the problem. :-) All my custom post types are being displayed so far. Thanks for the quick turnaround.

nphaskins
nphaskins like.author.displayName 1 Like

 @ccowell I do not handle refunds, you'll need to contact hello@pagelines.com .I'm not sure how else to make it more clear. Your plugin, is not using the correct post_class() function to generate the classes.

 

However, I'm going out of my way here to change the selector in my js to accommodate posts that aren't coded correctly.

 

I've changed it to target article, instead of .post.

 

AnyLoop is now at 1.0.4.

 

NIck

 

P.S - I had to dig in my gmail archive to find messages because it seems you have deleted a few above. For future reference, try not to delete these because it's hard for me to provide support with missing messages. ;)

 

 

ccowell
ccowell

I think I am going to need to request a refund. I am using Jigoshop, Event Manager Pro and they both don't mesh well with your plugin. I also created a simple test plugin that creates a "podcast" CPT and they all misbehave the exact same way. With a fresh install  AnyLoop works with regular posts and its unclear in your examples what CPT are used in your Grid Views. According to the post_class Reference, these plugins are outputting post class. I simply can not replicate your environment after two fresh installs.  Thanks again for your help, you've been very patient and responsive. Thank you.

nphaskins
nphaskins

 @ccowell All of the classes are generated automatically by Wordpress using the post_class() function.

 

In my plugin, on line 289, we have this

<article <?php post_class(); ?> id="post-<?php the_ID();?>">

 

You can look up in the codex for how to add a filter to include more classes. That link is here http://codex.wordpress.org/Function_Reference/post_class

ccowell
ccowell

 @nphaskins Can you send a pointer to the code that references the post_class() so that I may customize it for my needs.

 

 

nphaskins
nphaskins

 @ccowell Have you contacted the developer of the plugin to inquire why they aren't using the proper classes for posts? It's an extremely simple fix for him.

 

The masonry aspect of the plugin targets the .post class. Since your plugin isn't using post_class() function, it's not outputting that class. The classes in your plugin are hard-coded and that's just not the best way to do things at all.

 

Good luck, and I hope your plugins author will one day correct it.

ccowell
ccowell

 @nphaskins Sounds like I'm out of luck. Thanks for your quick responses.

nphaskins
nphaskins

 @ccowell The plugin that you are using, is NOT outputting the correct classes at all. Apparently they are hardcoded, and that is not the correct way. Look at the classes.

http://screencast.com/t/EOf0BqV7gaB

 

Within my AnyLoop I am using this;

<?php post_class(); ?>

 

This produces all the classes, as the codex reccommend. Your plugin is NOT doing this, which means it's not coded correctly. If it used post_class like it should be, this issue would not exist.

 

I would contact the developer of your plugin, and ask why he isn't using post_class to generate the classes used by Wordpress.

 

There isn't anything else I can do about this, and there's nothing I can change within my product to make it work.

 

Does this make sense?

 

Here's the documentation on post class

http://codex.wordpress.org/Function_Reference/post_class

 

Nick

 

ccowell
ccowell

 @nphaskins I agree that it can fetch the CPT but there appears to be a JS situation when document is ready.

ccowell
ccowell

 @nphaskinsDoes this mean that Anyloop will not be guaranteed to work with most premium plugins that create CPT?

nphaskins
nphaskins

 @ccowell no that does not matter, because my demo http://anyloop.nichola.us IS running multisite. I can guarantee you that it's your plugin that's creating the custom post types. I have post types here created the correct way (via function.php in a child theme, NOT with a plugin) and it works perfectly.

ccowell
ccowell

 @nphaskins OK, does it matter if I am using multisite? Because it's doing that exact same thing with three different custom post types now. :( Thanks for your patience but this key feature is not working so far. I'll do another fresh install tomorrow and get back to you. Cheers.

 

 

nphaskins
nphaskins

 @ccowell Nope, it doesnt break with a custom post type. I have created custom post types, and they work wonderfully. It's mostly likely the plugin that you're using that creates the post types. This section uses a simple wp-query, which works for pages, posts, authors, tags, and post types.

ccowell
ccowell

 @nphaskins OK, I did clean install and the plugin works fine with posts but then I enabled a plugin that generated a custom post type and configured AnyLoop to display the CPT. That's when things break. I get the same single column behavior with a "Podcast" and now an "Event" CPT. I hope this is useful information. I have no solution yet but it appears that AnyLoop breaks for CPT. Correct me if I am wrong but I believe your test environment used regular posts (atleast in the shared screen shots).

nphaskins
nphaskins

 @ccowell If I could replicate the issue I would know what to fix, but I'm unable to. The demo isn't displaying this behavior, I"m unable to reproduce the behavior here locally, and have not had one report of this type of thing happening. You must have a plugin, section, or something that is interfering with the section.

ccowell
ccowell

 @nphaskins When I disable the child theme (Transparency) and reactivate Anyloop, I get the same single column in Firefox and Chrome. :( I also tried adding the masonry-brick class in Firebug and did not notice the change. Your js files and css are enqueued but still not working...

nphaskins
nphaskins

 @ccowell Ya really not entirely sure what's happening. Does this still happen without Transparency? If so I would try deleting and re-installing the section. I'm unable to replicate this behavior.

ccowell
ccowell

 @nphaskins I disabled all the plugins and child themes. I am still getting a single column. I looked through the JS and am unsure why the "masonry-brick" class is not added to the article element. I am so close but yet so far.

nphaskins
nphaskins

 @ccowell ya you have some plugin/section/theme that's conflicting because masonry is'nt getting applied to the articles.

 

http://screencast.com/t/ljNqMCqaSNSN

 

On the left is my demo, on the right is your site. See how all the classes for masonry are missing? I would start deactivating plugins until you found the culprit.

 

Nick

ccowell
ccowell

 @nphaskins I use other plugins that uses a grid layout and they appear to work fine. Also when I increase the width, the column gets wider. It appears to be compatible with the theme. All I missing is the rows and I'm all set buddy.

nphaskins
nphaskins

 @ccowell Yup if they aren't in a grid something is conflicting. It's possible that, that theme is bringing in it's own styles and conflicting with the section.

Standard License

Personal, commercial, client websites
Average Rating —
Created by

Nick Haskins

Date Added