• I’m using Autofocus, and love the layout, but I am wondering if anyone knows how to replace the images on the homepage and their links to posts with images and links to pages.

    I’d like the images on the homepage to be static and not change and just link to actual pages where I could then have posts appear. Or to pages where I could then link to posts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I did that by changing the cat to a homepage one so it doesn’t replace the front images when I post anything I want on the home page I add the home cat

    line <?php while ( have_posts() ) : the_post() ?>
    
    insert query_posts('posts_per_page=4&category_name=your_cat'); just prior to while ( have_posts() ) : the_post() ?>

    Thread Starter arthurbovino

    (@arthurbovino)

    Thanks, I think that worked. But now I don’t want further posts to show up on homepage when I create them. How do I create further posts without having them show up on the hp?

    If you filter just one category then just assign the posts you want to appear on the home page, say call the cat home any post tagged home will display the others wont, this is how I do mine.
    &category_name=your_cat

    Thread Starter arthurbovino

    (@arthurbovino)

    Sorry, I don’t understand what that means.

    Can you explain further?

    The front page is designed to allow every new post to be displayed, filtering out one cat gives you control over what is displayed.

    If you look at this post it should be easier to understand.

    https://www.ads-software.com/support/topic/358983

    Thread Starter arthurbovino

    (@arthurbovino)

    You say filter out one cat. Sorry, but you may as well be speaking Greek.

    I don’t understand what that means. Do you mean delete a line in a certain stylesheet? If so, which line?

    OK I’ll try and explain.

    Edit your home.php file

    Go down unlil you find the div id ‘content’ entry

    Immediately after the closing div

    <div id="content">
    			<div id="nav-above" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span>', 'sandbox')) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__('<span class="meta-nav">&raquo;</span>', 'sandbox')) ?></div>
    			</div>

    Add this line:

    <?php query_posts('posts_per_page=4&category_name=archive-gallery');
    			while ( have_posts() ) : the_post() ?>

    I have made a category called ‘gallery’ and tagged the posts that I want to show on the home page with this – you can use or call it anything you want but only these posts will show.

    I suggest you take some time to study the code and once it becomes clear you’ll start to understand what to do.

    thanks for the posts! does anyone know how to use categories as the menu in the header in AutoFocus?

    https://www.alanspeaking.com

    thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Autofocus Homepage Images’ is closed to new replies.