Jump to content


Photo

I need a featured post but...


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 arthos

arthos

    Newbie

  • Members

  • 8 posts

Posted 11 November 2010 - 04:25 PM

looking around all the plgins need a modification on the template page in the loop (?) section. witch template page I have to modify? Im tryng to use "Featured post" Version 1.3.2 by Sovit Tamrkaar

#2 nett-ed

nett-ed

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 11 November 2010 - 08:37 PM

Use hooks it will make keeping track of your customizations easier. Just paste the following code in your currently active theme's functions.php file all the way at the very end:
 
		add_action('pagelines_loop_post_end', 'custom_plugin_loop_mod');
	
		function custom_loop_mod() {
			//YOUR PLUGIN'S REQUESTED CHANGES WOULD GO HERE
		}

The pagelines_loop_post_end hook used above will add your custom code at the end of the loop. If you wanted to run the code anywhere else within the loop there's a list of hooks that page lines provides specific to the loop area:
pagelines_before_theloop
pagelines_inside_top_theloop
pagelines_inside_bottom_theloop
pagelines_after_theloop
pagelines_loop_post_start
pagelines_loop_post_header_start
pagelines_loop_posttitle_start
pagelines_loop_post_title_after
pagelines_loop_metabar_start
pagelines_loop_metabar_end
pagelines_loop_before_post_excerpt
pagelines_loop_after_post_excerpt
pagelines_loop_before_post_content
pagelines_loop_after_post_content
pagelines_loop_post_end
pagelines_loop_clipbox_start
pagelines_loop_clip_start
pagelines_loop_clipmeta_end
pagelines_loop_clip_excerpt_end
pagelines_loop_clip_end