Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 8 posts - 1 through 8 (of 8 total)

FrontPage post linking to a page with a gallery

Home Forums Free Theme Support Asteria Lite FrontPage post linking to a page with a gallery

  • #114484

    Lukas

    How can I make FrontPage posts linking to different pages? Now when I click on a post it links to a post page and I want it to link to a page. Each post on the FrontPage would be linking to different pages. I’ve tried changing the code on template1 but with no luck so far…

    #114638

    Lukas

    Is it possible at all that the post from the FrontPage links to a page with a gallery?

    #114784

    Towfiq I.

    administrator

    There’s one way of doing that:

    Open up layout1.php and replace all these lines:

    <a href="<?php the_permalink();?>">

    with this:

    <a href="<?php the_excerpt();?>">

    then while editing the posts, put your page links in the “Excerpt” fields.

    #115285

    Lukas

    Sweet! Thanks for your support. 5 stars go for you!

    #115478

    carol

    the frontpage works only with posts? I tried the code above, to link the frontpage with pages, but i didnt work 🙁

    #115483

    Towfiq I.

    administrator

    @Lukas I would be grateful if you could rate the theme:

    Asteria Lite

    Thanks

    #115548

    Towfiq I.

    administrator

    @carol open up fucntions.php and replace this:

    set_query_var( 'post_type', 'post' );

    with this:

    set_query_var( 'post_type', 'page' );

    #115656

    carol

    thank you, towfiq! works like a charm 😉

You must be logged in to reply to this topic.