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

get_next_posts_link() returns no result despite available posts

get_next_posts_link() and get_previous_posts_link() are for linking between pages of a paginated post archive. For navigation between individual posts you want get_next_post_link() and get_previous_post_link(). Note the singular “post”. function myslug_render_post_navigation(){ echo get_next_post_link( __( ‘Previous post’ ) ) . ‘ | ‘ . get_previous_post_link( __( ‘Next post’ ) ); } add_action( ‘genesis_after_entry’, ‘myslug_render_post_navigation’ ); genesis(); I’ve noticed … Read more

How to remove the Navigation Bar (prim. and sec.) from the Homepage for the Genesis Framework?

you have several options.. A: Create a new page template for your home page Create a home.php file in your child theme directory, of course without the navigation(wish is included in (wp_head) B: Unregister the Primary and Secundary Nav Open your Child theme functions.php file and add this code at the end of the file, … Read more

Insert Ads “into” comments section in Genesis Themework

I would use the Genesis Simple Hooks plugin which allows you to add code to Genesis Comment Form hook. I’m using Hostgator ads for this example, but adsense can be used too. I dropped this code <a href=”http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=brilliantpamela-” style=”float:right; margin: 4px 3px;”><img src=”http://tracking.hostgator.com/img/Discount_Shared/Hostgator-new-_AN-125×125.gif” border=”0″></a> into The simple hook action only allows you to place code … Read more

Add an Outside Wrapper to my Header and Make it Full Width

This should do it. I can’t test it right now. I used the genesis_header_markup_open() and the genesis_header_markup_open() Genesis functions and renamed them wpse_121660_header_markup_open() and wpse_121660_header_markup_close(). Then called them instead of the Genesis functions and added your new <div> in them. /** Reposition header outside main wrap */ remove_action( ‘genesis_header’, ‘genesis_header_markup_open’, 5 ); remove_action( ‘genesis_header’, ‘genesis_do_header’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)