Forum Replies Created
-
AuthorPosts
-
e96989955
MemberYup! I actually added the php embed code directly to the Genesis framework header.php file and it worked. 🙂
e96989955
MemberYup, I used a PHP widget called Linkable Title Html and Php Widget by PepLamb.
I'll give the Genesis Slider a try!
e96989955
MemberI've added the code as you suggested and used a php widget to embed the code provided by the Nivo Slider Plugin, but nothing appears. 🙁
e96989955
MemberSorry, my bad! I forgot to add backslashes before each double quote on the break HTML code.
e96989955
MemberHi nick, I get a HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. when I insert the Break as an echo before each heading.
e96989955
MemberHi Ross!
Thanks for your reply. 🙂 I think you misunderstood my question. What I wanted was for each category to be displayed in a new row in the grid layout for the Expose child theme that I'm using.
Currently, if my category has less than 3 entries, it'll be squashed side by side with the entries from the previous category.
e96989955
MemberUrgh, my original question got eoverwritten by the code snippet I pasted somehow.
I tried to add a heading before displaying each category, but it turned out rather weird like this : http://www.thenewlaunchguru.com
My original intention is to have each category displayed in the next line. Some categories have 3 entries, whilst some is just 1 or 2. The rest are empty at the moment.
e96989955
MemberSorry, I post it thrice by accident and I can't seem to find the 'delete' post button here..
e96989955
MemberCurrently my code in home.php looks like this
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_do_home_loop' );
function child_do_home_loop() {Echo "<h1>Heading 1</h1>";
//change "x" to match your category ID
$loop_args = array( 'cat' => '1', 'posts_per_page' => 3 );genesis_custom_loop( $loop_args );
Echo "<h1>Heading 2</h1>";
//Change "y" to match your category ID
$loop_args['cat'] = '4';genesis_custom_loop( $loop_args );
Echo "<h1>Heading 3</h1>";
//Change "y" to match your category ID
$loop_args['cat'] = '6';genesis_custom_loop( $loop_args );
Echo "<h1>Heading 4</h1>";
//Change "y" to match your category ID
$loop_args['cat'] = '7';genesis_custom_loop( $loop_args );
Echo "<h1>Heading 5</h1>";
//Change "y" to match your category ID
$loop_args['cat'] = '5';genesis_custom_loop( $loop_args );
}
remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' );
-
AuthorPosts