https://www.appcropolis.org/blog/frameworks/assign-css-class-item-loop/
It is possible that you might face a situation where you are using a {foreach...} loop to render a list of items, but you may want to assign a CSS class to the first item in the loop. An easy way to accomplish this is by looking at the ...
Category: Frameworks
https://www.appcropolis.org/blog/frameworks/binding-single-page-view-template/
If you need to bind the content of a single page to view, you may use the following code:
{page post_name="about-us" assign_to="about_page"}
To access the data of the page that you just bound, you can refer to the object to which ...
Category: Frameworks
https://www.appcropolis.org/blog/frameworks/distributing-2-items-row/
This example shows how to iterate through a collection of items, and distribute them amongst rows that contain a fixed number of items. E.g. distributing 2 items per row.
{$count = 0}
{foreach $posts.data as $post}
{$count = ...
Category: Frameworks
https://www.appcropolis.org/blog/frameworks/creating-page-companion-view/
To create an new view you must follow these steps:
Create a page in Wordpres ( Pages > New Page ) –e.g. "My Profile"
NOTE: In this example Wordpress will generate the slug "my-profile".
Create a View using the name convention ...
Category: Frameworks