Jump to content
Sign in to follow this  
leftcoastmichael

News Feed Widget?

Recommended Posts

leftcoastmichael

I'm looking for a "New Feed" widget (preferably for the header) that allows us to insert single or multiple lines of news from time to time. Is this available? Using iBlogPro

Share this post


Link to post
Share on other sites
jnoh

Where would you want the news feed to appear (as a line underneath the navbar)? If you clarify what exactly you wanted, I can give you some better guidance.

Share this post


Link to post
Share on other sites
leftcoastmichael

Thanks Jnoh, Here is "almost exactly" how I'd like it to look (I inserted these manually) - but it would be even nicer if it was instead located in side a wide white 'rounded box' that fits the other them elements (say, 20 pixels tall x page width). http://www.leftcoastlogic.com/blog/

Share this post


Link to post
Share on other sites
leftcoastmichael

Any updates?

Share this post


Link to post
Share on other sites
jnoh

Alright! Got it. So replace the entire page-feature.php page with this code:

<?php
	if(VPRO) {
	/*
		Template Name: Feature Page - Default
	*/
		get_header();
	?>
		<div class="postwrap fix" style="margin-bottom:10px;">
			<?php query_posts('showposts=3'); ?>
			<?php while (have_posts()) : the_post(); ?>
				<div class="fix" style="margin:5px; text-align:center;">News Flash: " rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></div>
			<?php endwhile;?>
		</div>
		<div class="clear"></div>
	<?php
			require(PRO.'/template_feature.php');
			require(PRO.'/template_fboxes.php');
		get_footer();
	}
	?>[/code]

	
	This will give you three of your latest posts showing in a news feed right above your feature box.
	
	To edit the number of items to show change the '3' in:
	
	
[code]<?php query_posts('showposts=3'); ?>

Let me know how it goes.

Share this post


Link to post
Share on other sites
leftcoastmichael

Sorry, I cannot locate any file called page-feature.php anywhere in the install. 0128page.jpg

Share this post


Link to post
Share on other sites
jnoh

You'll want to edit our theme files. You should be able to find the page-feature.php file in the 'wp-content/themes/iBlogPro' directory.

Share this post


Link to post
Share on other sites
leftcoastmichael

Thanks! We're getting closer. I made the changes but nothing is showing up. Does this "news" widget only apply to pages using the "Feature Page" template? (If so, it's not showing up there either). I don't use the Feature Page template because I'm not really clear as to what it does (even after reading the documentation), but here is a link to a test page I created using the Feature Page templage: http://www.leftcoastlogic.com/blog/test-page?preview=true&preview_id=952&preview_nonce=4050eba768

Share this post


Link to post
Share on other sites
jnoh

Hm it should only appear when you use the Feature Page - Default template, which I see you're using on your homepage. Is it not working?

Share this post


Link to post
Share on other sites
leftcoastmichael

No, it's not working. But our main page is the "Full Width Page" template.

Share this post


Link to post
Share on other sites
jnoh

Ohh, I thought it was the feature page - default. The feature page default uses the big feature panel and little feature boxes. I'd like to see how the page is showing up when set to "feature page - default" I can't view the link you supplied because I don't have a wp account. Do you want to send me a temp admin login for your wordpress install to [email protected]? I'll be more useful if I can see exactly what's going on.

Share this post


Link to post
Share on other sites
leftcoastmichael

I sent it...

Share this post


Link to post
Share on other sites
jonasadnergmailcom

What about having a news feed with the latest posts, in one of the small boxes on the feature page? Can you tell me how to do that. Thx Jonas

Share this post


Link to post
Share on other sites
cmunns

You could try using a shortcode [postfeed field="post_title" offset="0" customfield="true" ] THis will get you the latest post. offset of 1 would be the second to latest post. Or try and find a plug-in that offers shortcode parsing.

Share this post


Link to post
Share on other sites
jonasadnergmailcom

Thanks for the help I will try that, but where should I put the code?

Share this post


Link to post
Share on other sites
cmunns

You can put it in the feature boxes directly. In the theme feature settings.

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  

×