It's a single page scrolling site and the blog section is supposed to appear in the designated "latest news " section/page.
The blog posts do exist in the admin area and can be viewed as existing single posts from there – but no posts will show up on the actual wordpress page.
(Strangely, when I was first creating the site locally on MAMP, it worked perfectly).
Tried everything my limited knowledge will allow and it still doesn't seem to work. (including repairing the database on my host server). It seems to be a problem relating to the theme – but I don't know what.
Is there anyone out there who could point me in the right direction to fixing this? I'd be most grateful for any help or advice.
I gave this a try but no luck.
It's a pretty unconventional theme and I think it has something to do with the php code – but I'm a complete nivice with php.
So are your pages displaying correctly? It's just posts...
You may have an error in your WordPress loop, can you copy and paste your index.php file code and put it in a comment on here, make sure to highlight it all and click the blue 'code' link above the textarea. It makes it easier to read through.
The issue is "elseif ( $page_type == 'blogpage' )"
Ignoring the loop, none of the html is showing up. Which mean the $page_type isn't matching. I can see near the top of the loop you use str_replace on the $page_type. Why do you do this? You're matching strings, you can have capital letters and spaces, it's ok. This only serves to screw things up.
What I would test first is in the foreach loop, just echo out each $page_type value so you can see what values it's pulling from the database. You'll see why it's not matching your "blogpage" value. It's probably grabbing "blogpage1", or not getting any kind of "blogpage" value at all. Try that and report back with the results.
I appreciate your help very much but this is all a bit beyond my understanding of PHP right now.
I do my best to understand but I'm a beginner in any kind of back end.
The template is a very unusual arrangement in that it is a single page scrolling site with the blog section being on that same page.
Hello,
I'm still a bit of a Wordpress novice and I've been setting this site up recently: http://graphicalchemy.co.uk/wordpressga2/
It's a single page scrolling site and the blog section is supposed to appear in the designated "latest news " section/page.
The blog posts do exist in the admin area and can be viewed as existing single posts from there – but no posts will show up on the actual wordpress page.
(Strangely, when I was first creating the site locally on MAMP, it worked perfectly).
Tried everything my limited knowledge will allow and it still doesn't seem to work. (including repairing the database on my host server). It seems to be a problem relating to the theme – but I don't know what.
Is there anyone out there who could point me in the right direction to fixing this? I'd be most grateful for any help or advice.
Thanks very much in advance...
Kelpie.
Hi @Fossy
Maybe try this;
Log into the backend of your website and in the WordPress area go to Settings > Permalinks > Click the 'Save changes' button.
If that doesn't work then make sure your posts are set as 'Published' and not set as a 'Draft'...
Hi Watson90,
I gave this a try but no luck. It's a pretty unconventional theme and I think it has something to do with the php code – but I'm a complete nivice with php.
@Fossy
So are your pages displaying correctly? It's just posts...
You may have an error in your WordPress loop, can you copy and paste your index.php file code and put it in a comment on here, make sure to highlight it all and click the blue 'code' link above the textarea. It makes it easier to read through.
The issue is "elseif ( $page_type == 'blogpage' )"
Ignoring the loop, none of the html is showing up. Which mean the $page_type isn't matching. I can see near the top of the loop you use str_replace on the $page_type. Why do you do this? You're matching strings, you can have capital letters and spaces, it's ok. This only serves to screw things up.
What I would test first is in the foreach loop, just echo out each $page_type value so you can see what values it's pulling from the database. You'll see why it's not matching your "blogpage" value. It's probably grabbing "blogpage1", or not getting any kind of "blogpage" value at all. Try that and report back with the results.
Thanks noahgelman,
I appreciate your help very much but this is all a bit beyond my understanding of PHP right now. I do my best to understand but I'm a beginner in any kind of back end. The template is a very unusual arrangement in that it is a single page scrolling site with the blog section being on that same page.