• Good Afternoon

    This is my first post to the wordpress forum, I thank anyone and everyone in advance for their help.

    On behalf of a friend, I have been converting a website from Joomla to WordPress. I’ve read up on the process as much as possible and have avoided asking questions for as long as possible, i’ve spent many hours working on this without resorting to the forum!

    The basic issue is that the theme is pulling through pages, the navigation menu is working but I am struggling with posts.

    I have a index.php file and have tried to create a content.php file and single.php file. I’ve tried to tweak the files from 2012 template, have read up on the web as much as possible and have seem to hit upon a brick wall.

    Currently when I set the posts page to be ‘news’ then it pulled through the most recent post but did not pull through the tags, comments etc and did not pull through more than one post.

    I’ve installed the posts in pages plugin and this has worked and the posts are now being pulled through. However the tag links do not work and the ‘add comments’ link do not work.

    I clearly need to add more hooks or code to get the blog system working, would someone be able to point me in the right direction? I have read up on the loop and tried to look at working examples but have not been able to apply my reading to this theme.

    Please refer to https://tinyurl.com/ojoaxlg. The news tab is currently a page that uses the post in pages plugin.

    Many thanks again

    Development14

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you reviewed Theme Development?

    Thread Starter development14

    (@development14)

    I have indeed, it helped me to get as far as i have.

    I could just do with some help piecing everything together if that is possible?

    I have the index.php file that features the loop and this works well with pages. I’ve tried to create tag.php files, single.php files but haven’t been able to target or work with blog posts.

    I have the index.php file that features the loop and this works well with pages.

    That template file is normally used to display your your main posts page – not to display static Pages. For Pages, you would use page.php.

    Thread Starter development14

    (@development14)

    Thank you Esmi

    I’ve just created a page.php file but this hasn’t made a difference. I am aware that there is a fundamental issue that I am missing, please be assured that I have spent many hours on this and am not aiming for a free lunch. I’m also not being paid for this project, I’m helping out a friend.

    The ‘blog’ will be placed under the ‘news’ link on the menu, not linked to from the homepage. I had set the post page in the reading settings to be the news page but this didn’t work.

    Within my index.php file I have the following coding : –

    <article>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php  get_post_format(); ?>
    <!—- CONTENT -—>
    <?php endwhile; ?>
    </article>
    <section class="entry-content"><?php the_content(); ?></section><!-- .entry-content -->

    and the functions.php file simply consists of

    <?php register_nav_menu('header-menu', 'Header Menu'); ?>

    for the horizontal menu on the page

    Can you identify from this information what is missing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘First Theme Creation, Loop is Working with Pages But Not With Posts’ is closed to new replies.