Results 1 to 3 of 3

Thread: Index.php File within Wordpress Theme - Need to add links to the blog titles

  1. #1
    Join Date
    Feb 2010
    Location
    Ireland
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Index.php File within Wordpress Theme - Need to add links to the blog titles

    Hi there,

    I have a question regarding a Wordpress theme I am using at the moment.

    I have somehow managed to remove the link from my blog post titles - please see here: www.suzannetoal.com
    It means that each blog post doesn't have it's page.

    For example, when you visit www.suzannetoal.com the first blog post you see is "Lisa & Damien’s wedding at Crover House Hotel". I would like the title to be clickable and link into it's own page.
    When I am editing that post, it does have a slug (see picture below) it is http://suzannetoal.com/lisa-damiens-wedding-at-crover-house-hotel/
    however when I click on that url, nothing comes up, it is like the blog post doesn't exist?
    Click image for larger version. 

Name:	Slug.jpg 
Views:	140 
Size:	39.4 KB 
ID:	5705

    Would anyone have any ideas? Just to confrim, I would like the blog post titles to be clickable and linked into pages of their own, rather than one large collection of posts that can't be linked to individually.

    I have posted my index.php file below as I'm assuming it may be to do it with, but I am far from an expert on Wordpress or Php, so please correct me if I have pasted the wrong file. I will send a virtual PayPal "coffee" your way if anyone can help me out please!

    Thank you so much.

    PHP Code:
    <?php get_header(); ?>
            
            <div id="content">
                <div id="primary">
                    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>
                        <div id="post-<?php the_ID(); ?>" >
                            <?php $format get_post_format(); 
    if (
    false === $format) { $format 'standard'; }
                            
    get_template_part('includes/post-formats/'.$format);
                             
    ?>
                        </div>
                    <?php endwhile; endif; ?>
                    <div class="navigation">
                        <div class="navigation-inner clearfix">
                            



                            <?php $wp_query->query_vars['paged'] > $current $wp_query->query_vars['paged'] : $current 1?>
                            <div class="navigation-center"><?php _e('Page''themerain'); ?> <?php echo $current ?> <?php _e('of''themerain'); ?> <?php echo $wp_query->max_num_pages ?></div>
                            <div class="navigation-right"><?php next_posts_link(''); ?></div>
                        </div>
                    </div>
                </div>
            </div>
            <?php get_sidebar();

    get_footer(); ?>
    Last edited by Beverleyh; 08-07-2015 at 05:02 AM. Reason: Formatting

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I have somehow managed to remove the link from my blog post titles
    Im not a Wordpress user but if you've been editing template files, can you take a backup and then reupload the originals? Then systematically override them with your editend backups again until you find the template file that affected the change?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    You should never edit the original theme in case there's an update and the files are over writtem. Always create a child theme and copy the files you intend to edit into that. You still have the original files in the original theme. See the Wordpress wiki for more.

Similar Threads

  1. Wordpress Theme
    By mohanmurali in forum HTML
    Replies: 1
    Last Post: 11-14-2013, 07:54 PM
  2. My wordpress theme hijacked?
    By Jessic4 in forum PHP
    Replies: 1
    Last Post: 02-22-2013, 10:52 AM
  3. Looking For A Well Supported Wordpress Theme
    By dog in forum Computer hardware and software
    Replies: 1
    Last Post: 10-16-2011, 03:38 PM
  4. Help with Wordpress Theme Changes
    By appreciation in forum CSS
    Replies: 0
    Last Post: 05-01-2011, 02:19 AM
  5. Wordpress Theme issues
    By iflyjetz in forum PHP
    Replies: 0
    Last Post: 12-21-2009, 02:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •