On my front-page i have a 3 col block section below the fold. The final and third column is an excerpt of the most recent post from my art category blog, hopefully this is clear up until here in terms of explanation of setting the stage.
This is how i'm approaching the solution:
I created a php file called "content-art-blog" which i pull into my front-page file using this php code
<?php get_template_part( 'content', 'art-blog' ); ?>
On the actual content-art-blog.php file however i'm formulating my solution so far like this:
<div class="col-block-last"> <h2><span class="bold">art</span> <span class="font-condensed">blog</span></h2> <?php get_post( $id, $output, $filter ); ?> <?php $linkdata = array( 'link_name' => 'art', 'link_url' => 'http://domain.com/categories/art/' ); ?> <a href="http://dcio:8888/category/art/">Read more</a>
NOTE: the actual A tag i just put in the local directory file path (since i'm developing on MAMP) but i realize this won't work once the site goes live.
So the question is two fold:
1) How do i pull in 1 post excerpt for a specific category into this block section
2) How do i link to the post (or will this be pulled in with the excerpt meaning i don't have to actually include this A tag to begin with?)
I went through the functions to get an idea of what actually is out there in terms of what i can actually do with these functions but i'm such a noob it will take time to digest what all these functions do and hence properly interpret how i can go about solving problems with them.
In my case i'm not aware of what i don't know yet.
Thanks hope that was understandable.