| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 (felis madjewicus) 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2006 
				Location: In Mom & Dad's Basement 
				
				
					Posts: 20,368
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				wordpress question: calling in the_permalink in post content?
			 
			Say I want a link within my content to link to  
		
	
		
		
		
		
		
	
	Code: 
	<?php the_permalink() ?> Code: 
	<a href="<?php the_permalink() ?>">  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 dont know why you want too, but you could create a shortcode to do it, or via a plugin. 
		
	
		
		
		
		
			http://justintadlock.com/archives/20...rdpress-plugin 
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 (felis madjewicus) 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2006 
				Location: In Mom & Dad's Basement 
				
				
					Posts: 20,368
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I am working on a script which automates my content creation for certain projects. All the post data is written into an XML file for importing into wordpress after it's creation. In my post template I would like to link an image from the excerpt into the single.php version of the_content. If you follow? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 heres a few others to look at 
		
	
		
		
		
		
			http://justintadlock.com/archives/20...rdpress-plugin http://wordpress.org/extend/plugins/rb-internal-links/ or some code to do it via your functions.php file Code: 
	function print_link($atts, $content = null) {
        global $post;
        $permalink = get_permalink($post->ID);
        return '<a href="'.$permalink.'">'.$content.'</a>';
}
add_shortcode('mypermalink','print_link');
Code: 
	[mypermalink]title you want[/mypermalink] 
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 (felis madjewicus) 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2006 
				Location: In Mom & Dad's Basement 
				
				
					Posts: 20,368
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 you could probably modify it to work with excerpt as well, probably just 1 line of code to add the filter for excerpt as well as the_content 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 (felis madjewicus) 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2006 
				Location: In Mom & Dad's Basement 
				
				
					Posts: 20,368
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Code: 
	add_filter('the_excerpt', 'do_shortcode');
 | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 (felis madjewicus) 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2006 
				Location: In Mom & Dad's Basement 
				
				
					Posts: 20,368
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 from one headache to the next. now i'm having trouble gettign the_excerpt to import from my XML file. The post imports fine, but the excerpt is left hanging  
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |