Make image clickable and direct to post (not page)? (1 post)

  1. WorkinAround
    Posted 2 years ago #

    Hi Everyone,

    So I am using the theme Sport and Grunge (demo of theme here: http://tf.dtbaker.com.au/wordpress/sport_grunge/?tempcolor=green ) and I am really needing to make the homepage banner be clickable to different posts I am creating. There is an option in the admin panel to make each banner image clickable to a page (Screenshot: http://imageshack.us/f/59/screenshot1izx.png/ ) but that only allows me to link it with a page, not a post. If anyone would be willing to help me with this I would be very grateful and it's very appreciated!

    Also I found this:

                                <select name="dtbaker_pagecustom_banner_link_<?php echo $x;?>">
                                    <option value="">Nowhere</option>
                                    <?php foreach(get_pages() as $page){ ?>
                                    <option value="<?php echo $page->ID;?>"<?php echo (dtbaker_pm($postID,'dtbaker_pagecustom_banner_link_'.$x) == $page->ID) ? ' selected':'';?>>
                                        <?php echo $page->post_title;?>
                                    <?php } ?>

    I believe this is the option which allows me to select the page to link the image with (as seen in the screenshot), maybe there is something I can change / add to this that would allow not only pages but posts, or even just posts instead.

    Thank you for reading, any help is very appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.