Forum Replies Created
-
AuthorPosts
-
ramesh85Member
hi could you please check? i have updated my custom code and setting screenshots.
thank you
ramesh85MemberMy code Part for blog template:
<?php
/**
* Template Name: Blog Template
* Description: Used as a page template to show page contents, followed by a loop
* through the "Genesis Office Hours" category
*/// Add our custom loop
add_action( 'genesis_loop', 'cd_goh_loop' );function cd_goh_loop() {
$args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'orderby' => 'menu_order');
$loop = new WP_Query( $args );
if( $loop->have_posts() ) {// loop through posts
while( $loop->have_posts() ): $loop->the_post();$video_id = esc_attr( genesis_get_custom_field( 'cd_youtube_id' ) );
$video_thumbnail = '';
$video_link = 'http://www.youtube.com/watch?v=' . $video_id;echo '<div class="one-third first">';
echo '' . $video_thumbnail . '';
echo '</div>';
echo '<div class="two-thirds">';
echo '<h4>' . get_the_title() . '</h4>';
echo '<p>' . get_the_date() . '</p>';
echo '<p>Watch It | Show Notes</p>';
echo '</div>';endwhile;
}wp_reset_postdata();
}
genesis();
?>
*******************************************************
i created a page name called New and i assign this template for new page :
https://www.bargainblessings.com/new/ (you can see posts are displaying there)
screenshot 1:
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-3.pngbut when i select this new page as a home in Reading Settings section these post are not displaying there.
screenshot 1:
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-1.pngscreenshot 2:
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-2.pnglet me know why custom blog template not working on home page ?
ramesh85MemberLet me know why?
ramesh85MemberMy custom code :
http://www.bargainblessings.com/wp-content/uploads/2017/10/mycode.png
and i created a new page called 'New' and i assigned this blog template there
link : https://www.bargainblessings.com/new/
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-3.pngthere you can see all posts are displaying
but when i try to make that new page as a home page using "Reading Settings" home page gone blank
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-1.png
http://www.bargainblessings.com/wp-content/uploads/2017/10/1-2.pngramesh85Memberhi can you please check my replies ?
ramesh85Memberhi ,
thank you for your quick reply, i have attached screenshots links here :
example site : http://hip2save.com/http://www.bargainblessings.com/wp-content/uploads/2017/10/layout.png
http://www.bargainblessings.com/wp-content/uploads/2017/10/grid-view.png
http://www.bargainblessings.com/wp-content/uploads/2017/10/list-view.pngi am looking for this layout to my genesis theme. let me know the code parts?
thank you
-
AuthorPosts