Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating » Old Version fixes and change logs »

BUGFIX 364-05: No link to the full post shown on excerpt when post has no title


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 21, 2011, 03:49 PM
juggledad's Avatar
juggledad
 
22,191 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
If you set the 'Custom read more' to have a link to the full post, but you are also using the 'Use Post / Page Option' and have a blank post title, then no permalink will show if you are displaying excerpts.

In addition, you will see the word 'Permalink' displayed in place of the blank title.

This fix corrects the code by removing the word 'permalink' from the post title. It also adds the word 'Permalink' to the 'custom read more' if you are using '%title%' in it's configuration.

edit functions.php and change line 285 (version 3.6.4) from
HTML Code:
		$custom_read_more = str_replace('%title%', the_title('','',FALSE), $custom_read_more);
to
HTML Code:
		if ( get_the_title() == '' ) { 
				$custom_read_more = str_replace('%title%', 'Permalink', $custom_read_more);
		} else {		
			$custom_read_more = str_replace('%title%', the_title('','',FALSE), $custom_read_more);
		}
edit bfa_post_parts.php and change lines 42-47 (version 3.6.4) from
HTML Code:
	// Since 3.6.1: Display a link to the full post if there is no post title and the post is too short
	// for a read more link.
	if ( get_the_title() == '' ) { ?>
		<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link">Permalink</a><?php 
		
	} else if ( (!is_single() AND !is_page()) OR $bfa_ata_display_body_title == '' ) {
to
HTML Code:
	if ( (!is_single() AND !is_page()) OR $bfa_ata_display_body_title == '' ) {
or you can download and unzip the attached files and upload them to your host.
Put 'functions.php' in the 'atahualpa' folder replacing the original.
Put 'bfa_post_parts.php' in the 'atahualpa/functions' folder replacing the original.

functions.php.zip
bfa_post_parts.php.zip
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGFIX 364-04: Tagline will show when Overlay Blog TITLE over Header Image(s)? = yes juggledad Old Version fixes and change logs 0 Feb 19, 2011 05:09 PM
BUGFIX 364-01: “Title tags in Category Menu Bar” fails to remove muti-line title juggledad Old Version fixes and change logs 2 Feb 10, 2011 03:47 PM
post title without an excerpt street_spirit Page & Category Menu Bars 1 Dec 3, 2010 09:53 AM
Post Title is truncated and will not display full post title ruddcl Center area post/pages 1 Mar 9, 2010 04:54 AM
Full Post instead of Excerpt after posting a comment? adum Excerpts, Read more, Pagination 4 Jul 11, 2009 03:19 PM


All times are GMT -6. The time now is 08:23 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.