How to create and set a separate template file for articles in Genesis framework? (WordPress)

You can use this… <?php get_header(); ?> <?php genesis_before_content_sidebar_wrap(); ?> <div id=”content-sidebar-wrap”> <?php genesis_before_content(); ?> <div id=”content” class=”hfeed”> <?php genesis_before_loop(); ?> <?php genesis_loop(); ?> <?php genesis_after_loop(); ?> </div><!– end #content –> <?php genesis_after_content(); ?> </div><!– end #content-sidebar-wrap –> <?php genesis_after_content_sidebar_wrap(); ?> <?php get_footer(); ?> CHange this line: <?php genesis_loop(); ?> To whatever loop you need … Read more

Multiple loops in Genesis

I think both issues can be solved by altering what’s happening inside the loop. The code you’ve posted are the arguments that are used for the query. There is a while loop which then goes through the results of the query and displays them. Try to find while ($wp_query->have_posts()): $wp_query->the_post();. Between this and endwhile; the … Read more

Genesis loading of html5shiv for IE8

According to Microsoft’s docs, the syntax for revealing and hiding content using conditional comments are different, so since you’re trying to only use (reveal) the script for IE8 and below (vs. hiding it), the echo statement should change to: echo ‘<![if lt IE 9]><script src=”https://html5shiv.googlecode.com/svn/trunk/html5.js”></script><![endif]>’ . “\n”; Support for conditional comments ended with IE10, so … Read more

Passing a Variable to a Function Hooked to Genesis Entry Content

If you are going to be setting the notice dynamically, what I would do is just pull in the notice in the callback function. But if you can’t do that for whatever reason, you can do a little wizardry like so: if( $notice ) { remove_action( ‘genesis_entry_content’, ‘genesis_do_post_content’ ); add_action ( ‘genesis_entry_content’, function() use ($notice) … Read more

Notice: Undefined variable: thumbnail [closed]

It is complaining that $thumbnail is undefined because it’s undefined, unknown, it’s been pulled out of thin air. echo get_the_post_thumbnail($thumbnail->ID, ‘portfolio-featured’); This, is the very first time $thumbnail is mentioned, where did it come from? ¯\_(ツ)_/¯ I have no idea and neither does PHP, hence the warning. You could change it to $thai_chicken_curry->ID and it … Read more