Thread Starter
maliha
(@maliha)
I think I may not have worded my question right. I’m not having any trouble with moving my blog. I’m developing a theme and as part of it have been testing the theme on my local server (which is in my computer).
After I did everything, and tested on my local server, everything was alright. I uploaded the theme folder in WordPress just like you would any other theme. The index is working perfectly as well. However, when I click on an individual post, I see the comments, and meta data, but not the contents of the post itself. This is happening only when I’m trying to view a single post. Collective blog page is working just fine.
So, my question is, does anyone know why this is happening and how this can be fixed? Specially seeing how everything is working just fine on my local server.
Thanks.
You can see the example here: http://freewayfoto.com/themetest/
Click on a post title to view only that post and you will understand what I’m talking about.
Thanks.
Are you sure you have <?php the_content; ?>
or <?php the_excerpt;?>
in single.php?
Thread Starter
maliha
(@maliha)
Hello
Excluding the meta and utility, the content section looks like this:
<?php the_content(); ?>
<?php wp_link_pages(‘before=<div class=”page-link”>’ . __( ‘Pages:’, ‘your-theme’ ) . ‘&after=</div>’) ?>
Am I missing something?
Thread Starter
maliha
(@maliha)
Also, if I missed anything then would it have worked when I was testing the theme on my local server?
Thread Starter
maliha
(@maliha)
Sorry, made a mistake on the above code.
The code that have on my single.php file is:
<?php the_content(); ?>
<?php wp_link_pages(‘before=<div class=”page-link”>’ . __( ‘Pages:’, ‘your-theme’ ) . ‘&after=</div>’) ?>
Where am I going wrong here?
Thread Starter
maliha
(@maliha)
PROBLEM SOLVED!!
I added
<?php the_post(); ?>
right after <div class=”content”>, and voila!!!
Didn’t know I’d need that but oh well… guess I missed it when I was reading the tutorial that I followed!!!
But thanks a bunch for your help. Appreciate it!
-Maliha