Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

look into force_fallback loop and get featimg working on pages that are the blog #53

Closed
chuckreynolds opened this issue Apr 3, 2015 · 1 comment

Comments

@chuckreynolds
Copy link
Owner

is_home() && get_option('page_for_posts') is a page that's showing the blog. we should check to see if that has a featured image and then display it. currently it ignores it because it's is_home.
Update helper_codes at bottom of output too.

@chuckreynolds
Copy link
Owner Author

option page_for_posts() shows thumbnails for posts in the blog index query not the page itself so I removed this for now

if ( is_home() && 'page' == get_option( 'show_on_front' ) && has_post_thumbnail( get_option( 'page_for_posts' ) ) ) {
    $wpfbogp_featured_img_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_option( 'page_for_posts' ) ), 'full' );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant