Scott
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts in Page] Different styling for posts after first / exclude first postI think this is the answer for you Marco…
Copy ‘posts_loop.php’ (the template used to display posts) from the plug in folder and place in your theme directory.
You’ll need two of these, eg. ‘posts_loop_one.php’ & ‘posts_loop_two.php’.
Style these files as required using inliine CSS or classes from your ‘style.css’ sheet.Your short codes for your two posts in different styles will look like this:
Post no.1:
[ic_add_posts category='X' showposts='1' template='posts_loop_one.php']Post no.2:
[ic_add_posts category='X' offset='1' showposts='Y' template='posts_loop_two.php']Forum: Plugins
In reply to: [Posts in Page] Different styling for posts after first / exclude first postoffset=’x’ enables you to skip ‘x’ number of posts before the one that is shown, so for example:
You have posts 1, 2, & 3, and you want the short code to start from the third post. To achieve this you would add offset=’2′ to the short code.
You can apply a different layout and styling by creating separate posts_loop.php templates in your theme’s root folder, then use template=’y’ to use them.
Hope I’ve covered what you wanted to know.
Forum: Plugins
In reply to: [Posts in Page] Different styling for posts after first / exclude first postThere’s no need for an extra plug in, sorry I should have been clearer.
offset=’x’ will work fine in this plug in, it’s just not mentioned in the Read Me file.
Forum: Plugins
In reply to: [Posts in Page] Different styling for posts after first / exclude first post(marked as resolved)
Forum: Plugins
In reply to: [Posts in Page] Different styling for posts after first / exclude first postI’ve solved this for myself.
Found a different plug-in that used _offset=’x’_ so tried this in the shortcode and happily it works! With this addition I can place another shortcode below using a different template, thus solving the problem.
So shortcodes reads:
[ic_add_posts category=’Top1′ showposts=’1′ template=’posts_loop_topstory.php’]
[ic_add_posts category=’Top1′ offset=’1′ showposts=’2′ template=’posts_loop_topstory-under.php’]