1. Grid blog posts
2. Sidebar; with individualized sidebar on the home page
3. Some static content on the home page at the top
4. Slider
[optional] 5. Two sidebars on each page
Thanks
Phil
https://www.roadtonewlifeblog.org/
]]>Any guidance would be appreciated.
thank you.
]]>Thank you.
]]>I want to use IS on a page that is using a page template from my file masonry.php and content-masonry.php. This page template is pretty much the same as a blog page and grabs every post in order from most recent to least.
Here is the link to what I have: https://webshowcase.tk/wp1/?page_id=77
The page works fine with next and older posts but when I try to use IS it doesn’t load anything after the initial posts. Currently this is what I have in my functions.php file:
//Infinite Scroll I only want it on this page.
function ws_infinite() {
$supported = current_theme_supports( 'infinite-scroll' ) && ( is_page(77) );
return $supported;
}
add_filter( 'infinite_scroll_archive_supported', 'ws_infinite' );
//render function
function ws_infinite_scroll_render() {
get_template_part( 'content-msloader' );
}
add_theme_support( 'infinite-scroll', array(
'container' => 'container-masonry',
'footer' => 'page',
'render' => 'ws_infinite_scroll_render',
) );
what I have contained in content-msloader.php is this:
<!-- Start the Loop. -->
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-masonry', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentythirteen_paging_nav(); ?>
<?php endif; ?>
and in content-masonry.php which is the post template part for masonry.php contains:
<?php
/**
* home template for displaying content
*
* Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
?>
<?php
//Preview Size Image
if ( has_post_thumbnail() ) {
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'homepage-preview');
$url = $image_url[0];
}
else $url = get_bloginfo('stylesheet_directory').'/images/home-preview-default.jpg'
?>
<?php
//Thumb Size Image
if ( has_post_thumbnail() ) {
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'homepage-thumb');
$url2 = $image_url[0];
}
else $url2 = get_bloginfo('stylesheet_directory').'/images/home-thumb-default.jpg'
?>
<!---------------------Grid Posts---------------------->
<div class="brick">
<section id="section1">
<div class="brick_header">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Click to view: <?php the_title_attribute(); ?>">
<?php the_title(); ?></a>
</div>
<div class="brick_featured_image">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Click to view: <?php the_title_attribute(); ?>">
<img src="<?php echo $url2; ?>" alt="<?php the_title(); ?>"/>
</a>
</div>
</section><!--end section 1-->
<section id="section2">
<p>
<?php echo get_the_excerpt(); ?>
</p>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="read_more_link">Read More</a>
</section>
</div>
Any help or suggestions or anything that can point me in the right direction is much appreciated.
]]>I’m developing a child theme based on TwentyEleven, but this is a bit too advanced for me and while I can find pieces of the puzzle, I don’t know how to put it all together. I haven’t found any plugins satisfactory, because they don’t allow the full post first. I’m fluent in CSS, but not PHP.
Can anyone help me put together a game plan for this?
]]>Basically I’m trying to create something like this:
(edit: my bad text drawing didn’t display properly, here’s a poorly drawn jpg instead)
This is what im trying to accomplish.
Ignoring all the other elements of the page (header, footer, menu, sidebar, etc) this is what i’d like the main body of the page to resemble. In the column/row section, I’d like to have an excerpt or teaser of the full article, with a thumb on the left and a read more link.
For the main page I would like a static listing , or perhaps a list of “featured” tagged posts, while on other pages the posts would display randomly.
I’m using the Yootheme Warp Framework for the extra widget positions if the need ever arose.
Warp widget positions:
‘Warp Layout‘
Even if this could be done using a widget in a widget position (horizontally 3 columns, 2 rows) it would work well for me. INNER BOTTOM or BOTTOM A
Or like: https://genesistutorials.com/plug-ins/genesis-post-teasers/
Thank you very much for reading and hopefully someone can provide some guidance.
Tyler.
]]>It works great, but it displays the posts in this format.
Post #1 | Post #4
Post #2 | Post #5
Post #3 | Post #6
I need it to display them in this format.
Post #1 | Post #2
Post #3 | Post #4
Post #5 | Post #6
You can see what I mean here, test post 9 being the newest 1 the oldest.
https://zeaks.org/test2/?page_id=2
But I have no idea how to do it, I don’t know very much about php. Any help appreciated, thanks.