WordPress.org

Ready to get started?Download WordPress

Forums

Bizarre Permalink Linking - Can you help? (6 posts)

  1. kokopellisk
    Member
    Posted 6 years ago #

    Hi Peeps,

    I have set up a blog here...

    http://moments.pelli.co.uk/blog/

    I have split the blog into two parts, the blog area itself is pulling in posts to a certain category, the second area is the Wedding News page, which is pulling in posts from another category.

    For some reason, every post is linking to the one post in the news category, even posts in the blog section... for example...

    Clicking: Your Day Your Way – Inspirational Weddings
    Links to the Marvelous Midge! post, as does the other post in the blog.

    Any ideas would be gratefully received

    Thanks
    Si

  2. moshu
    Member
    Posted 6 years ago #

    I have split the blog into two parts, - you will have to explain this...

    This is not the way WP works:
    http://moments.pelli.co.uk/wedding-news.php
    What is this "wedding-news.php" file? That cannot be part of WP...

    Try to explain what is it what you want to achieve. Then somebody might be able to tell you HOW to do it.

  3. kokopellisk
    Member
    Posted 6 years ago #

    Hi moshu, sorry, will try to explain it better.

    I have split up the wp database into two, a blog and a news section to display diff kinds of posts.

    I am calling in posts to the blog by specific category, and posts to news the same way using the following php:
    <?php query_posts('cat=1,3&showposts=2');

  4. kokopellisk
    Member
    Posted 6 years ago #

    Sorry, this forum always cuts off half of my post ... I hope that explains it OK.

    I am just using one WP Blog for news and blog section. Contemplating just making the News section another blog altogether.

  5. moshu
    Member
    Posted 6 years ago #

    I have split up the wp database into two, a blog and a news section to display diff kinds of posts.

    That's even more confusing... sorry. Never heard about splitting the WP database.

    Usually, people use the categories for what you want to do - if my guess is correct.

  6. kokopellisk
    Member
    Posted 6 years ago #

    Sorry, it's hard to explain.

    The website has a blog, and a news section.

    I have split these up by creating a blog category and a news category and pulling posts to each category into their relevant section using query_posts

    For example, this is how I pull in the content from the news category:

    `<?php require('blog/wp-blog-header.php');
    query_posts('cat=4&showposts=4');
    while (have_posts()) : the_post(); ?>
    <h2 class="blog_title"><?php the_title(); ?></h2>
    <div class="news_content"><?php the_content('…'); ?></div>
    <p class="news_date"> Article Posted On <?php the_time('F jS, Y') ?></p>
    <?php endwhile;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic