Content builder for Wordpress
2046's loop widgets boost your website prototyping.
Though the 2046's lop widget is fully functional, it will be not develeoped any further. EASY will take it's place instead.
The Drag&Drop content management is here. When you build the content with "2046's loop widget", the only thing you have to decide is what content you want to see and where. All the programming you always wanted to avoid is gone. The widget covers the most routinely used content logic. The aim of this widget is to speed up the process of content structuring and simplicity of usage while keeping the standarts.
Here you can set up who can see the widget result on the front end.
Choices:
Note: see the full roles explanation on http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table
All the content in WordPress; Posts, Pages, Images etc. are post types. Each of them have specific characteristic.
Post types are linear, by default sorted by date. These are the posts for yor blog.
Page types are by default hierarchical. So called static pages.
Your custom posts.
They can be either post type (linear) or Page type (hierarchical).. You can make your own by CCTM plugin, or any other Custom Post type plugin, or make it your own http://codex.wordpress.org/Post_Types
Note: Because the Post type can be almost anything, whatever post type will be called an object in this manual.
Choices (All the registered post types):
by default:
Note: When you change the post type, the widget “closes”. You have to confim the change by the save button.
The widget then gets all the proper data for the particular post type, like categories, tags, hierarchical or linear setings etc.
Afterwards the widget is divided in to two logical parts.
The “content” on the left and the “logic” right.
In the content part you decide what part of the post, page you want to see. Like: title, edit link, featured image, content, categories, etc.
The logic part is more complex. There you can restrict the widget for certain places, where it can be show. More necasarily on what logic is the content taken.
You can set the widget to render only post from a category, or only posts who has specific custom_meta value or only child pages of the given page and so on.
This name will be used as a heading on the top where the widget will be displayed. The name is also used for the title of the widget it self.
Note: the widget title as like the widget it self follows the rules from the register_sidebar declaration (http://codex.wordpress.org/Function_Reference/register_sidebar).
Choices:
This will show the featured image associated with the object.
Make the picture as a link to:
Show the comment number close to the object title.
It will output the so called metadata of the post. They are located always after the content, or excerpt part.
Choices:
Note: Comments can be shown only on the final or if you like single object page. Not in the list. category list, archive list etc.
Normaly when the comments are closed a warning about this situation is shown. This will hide it if you like.
Choices:
ON-OFF: Everything on the front end page is affected by the pagination.
If you run multiple widgets (loops) on one page and you go to the next page (for example from index to next X posts), then also the widget loop goes to “it’s” next page.
If you want to avoid this behavior, because you want to see only the fixed objects not effected by other possibly paged objects, uncheck it.
Scafolding is the div structure which surounds the objects. This is important when you start to work on the theme tweaking.
The scafold can have various structures. These setting should give you the maximum flexibility to construct what ever scafold you’ll need in your webdesign.
Note: The scafolding logic has it’s root in the Boostrap. When you look on te Boostrap scafoldig logic, you find out that it actually covers all necessary div layouts
we need.
Choices:



Also in this case you can add your own class to each row div and also to the column div. Grate for your custom CSS tweaking.
Note: You can add mutliple classes separated by comma (row my_special_class my extra_class).
Preamble (Loop)
When ever you want to get the content of anything you run loop. Every part of the object can be shown within a loop – a request for the object and its belongings.
So when you see for example the category list with say 10 posts then Wordpress has done 10 loops. One loop for each post and asked for the content of each object..title, excerpt etc.
Keep it in mind in further reading.
Choices
Note: When ever you upload images when you edit the object, the WordPress rememnbers that they are associated with that object.
These images we will fetch.
Choices:
Note: if you allowed the pagination, then it will gets X desired objects and on the next page another X objects, etc (of this view, like page two of the category xyz …).
How many objects of from the result you want to skip.
Choices:
Choices:
Here you can restrict the widget to be show only on specific places.
Choices:
Choices:
Will output the query arguments you have build by this widget. So you can check what you have set up, and compare it with the result.
Note: the output is wrapped in the extra class, so you can hide it to all non logged in users. So you can debug the result on live page with “nobody” noticing :P
If you use the WordPress body classes put this in your CSS: .logged-in .lw_2046_debug{display:none !important;}
The widget is ready to be translated to any language (gettext).
Current languages:
To fully benefit from this plugin you should try to remove all the loops from your classical theme and replace it simply by sidebars (example below). Then you can Drag&Drop the content where ever you want. No other coding except CSS styling needed.
Finally you'll have nice and simple template and everything under control from the widget area.
If you use this widget system then your index.php might look like this
<?php get_header(); ?> <div class="row"> <div class="col_5"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div> <div class="col_3"> <?php dynamic_sidebar( 'sidebar-2' ); ?> </div> <div class="col_3"> <?php dynamic_sidebar( 'sidebar-3' ); ?> </div> </div> <?php get_footer(); ?>
Don't forget to register these sidebars in the function.php! How to register sidebar.
Simple huh ;)