George Moureau
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blog Posts "Not Found" when moving blog from front pageThat did it! Thanks Shaun. That wouldn’t have occurred to me but now that I think about it, it was redundant. Thanks man, I owe ya one…
George
Forum: Fixing WordPress
In reply to: Blog Posts "Not Found" when moving blog from front pageyes, below is the code. It’s pretty standard. I believe it came with WordPress templates.
<?php query_posts($query_string . “posts_per_page=6”);?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h4>“><?php the_title(); ?></h4>
<!–DISPLAYS THE POSTED ON DATE AND PERSON –>
<?php include (TEMPLATEPATH . ‘/inc/meta.php’ ); ?>
<div class=”entry”>
<?php the_excerpt(); ?></div> <!– end entry div –>
</div> <!– end post div –><?php endwhile; ?>
<?php include (TEMPLATEPATH . ‘/inc/nav.php’ ); ?>
<?php else : ?>
<h2>Not Found </h2>
<?php endif; ?>Forum: Fixing WordPress
In reply to: Blog Posts "Not Found" when moving blog from front pageAh, another clue to the mystery. Added the code to the footer and it works….on all pages except the blog page. I don’t get a return from the get_post_meta function call on the blog page only…. curious…
G.
Forum: Fixing WordPress
In reply to: Blog Posts "Not Found" when moving blog from front pageThanks Shaun, will give it a try and let you know. As far as I can tell I am using home.php for the blog page. At this point, the blog page presents, I have the category list displayed, however none of my existing posts are listed below. It fails the “if (have posts())” conditional. https://www.piccexcellence.com – “our blog” is the menu item top right…
George
Forum: Fixing WordPress
In reply to: Blog Posts "Not Found" when moving blog from front pageShaun, I’ve built a custom theme which has been working with no problems and yes it has a home.php and no I created my own theme template files.
Archie, I’ll look in to this, sounds like a good lead. We created a large number of posts with the former permalink…
Thanks,
GeorgeForum: Fixing WordPress
In reply to: Running Banner Across Landing Page of WebsiteI don’t know if this is what you want bit I use WOW slider. It let’s you create slide shows for banners, footers, or just a block of space on your site. It’s not dynamic so probably not what you’re looking for.
George
Forum: Fixing WordPress
In reply to: RSS Feeds stopped working with 3.5Ok, upon futher investigation is seems the news feeds I was linking to are down. Don’t know why this crashes the sidebar though… also crashed my footer (which makes sense since the footer follows the sidebar)…
Forum: Fixing WordPress
In reply to: Why won't php header(Content-type: 'image/png') work?Ok, I figured it out. I’ve had the output buffer running (ob_start()) in the header.php of my theme. I added ob_clean() to the top of the certificate.php file which generates the png image of the certificate. That fixed it. FYI: you can use header within wp templates, you just have to turn on output buffering.
George
Forum: Fixing WordPress
In reply to: Why won't php header(Content-type: 'image/png') work?https://www.piccexcellence.com. email me at [email address moderated – this forum does not provide support via email] . I don’t want to pass login info on the forum. I really need to figure out how to get around this. It’s a cornerstone to our site..
thanks,
GeorgeForum: Fixing WordPress
In reply to: Why won't php header(Content-type: 'image/png') work?what is a restricted download plugin? These aren’t WP pages or templates. They simply are accessed through a wp login front end. They are linked through a wp account info page. Once there, wp has been left behind….
Forum: Fixing WordPress
In reply to: Why won't php header(Content-type: 'image/png') work?It’s a certificate from an online training program. It doesn’t print if they don’t pass the course. Have to determine if they pass or not…The certificate is printed with their name and their score on it.
Thanks Andrew, that redirect works however it still has the same problem of html output disabling the redirect. I found through further reading that turning on the output buffer (ob_start()) in my header.php file allows it to work with php 4.4 and newer and IE. Looks like other browsers must turn on the output buffer automatically, that’s my guess anyway, cause IE is the only browser that has a problem…
Thanks again…
George
Okay, further research reveals that php header() function has to come first before any hmtl code. Each wordpress page begins with wordpress function – get_header, which obviously loads the header information (html) for each page. So I move the get_header() function below any include files and the php header() function works fine EXCEPT in Internet Explorer (v9). Everything gets screwed up with formatting if I don’t put the get_header() function as the first item called on a php page, just in IE, all other browsers are fine.
Any thoughts on this would be appreciated. Are there compatibility codes that can be put in the header.php file that would correct for this?
George
Forum: Fixing WordPress
In reply to: Toolbar missing – works fine in 2010 but not in custom themeNever mind got it…. simple mistake. somewhere along the line I had deleted the wp_footer() call from the footer file. added it back in and all is well
<?php wp_footer(); ?>
G..
Forum: Fixing WordPress
In reply to: Toolbar missing – works fine in 2010 but not in custom themeP.S. The space for the toolbar is there. When I deselect “Show Tool Bar” in my profile, that space collapses and reappears when I select “Show Toolbar”…
G.