Archived

This topic is now archived and is closed to further replies.

  • 0

I need a featured post but...

Question

Posted · Report post

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

Share this post


Link to post
Share on other sites

1 answer to this question

Posted · Report post

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

Share this post


Link to post
Share on other sites