Jump to content
Sign in to follow this  
jankowalski

custom section TITLE

Recommended Posts

jankowalski

I was able to create a section with custom loop, but it doesn t have any title. I want to have a custom word MORE with h3 tag above the loop. What should i add to this code? Thanks

class PageLinesPostLoop2 extends PageLinesSection {
	
	
	function section_template() {
	
		query_posts( array(
	    'post_type' => array( 'video', 'book' )
	) );
			$theposts = new PageLinesPosts();
			$theposts->load_loop();
		}
	}

Share this post


Link to post
Share on other sites
Danny
Hi Jankowalski, I'm by no means a PHP expert, but the code below may be what you're looking for. [code]class PageLinesPostLoop2 extends PageLinesSection { function section_template() { ?>

More

array( 'video', 'book' ) ) ); $theposts = new PageLinesPosts(); $theposts->load_loop(); } } ?>[/code]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×