• angsuman

    (@angsuman)


    I realized by accident that I can post without having a title. Isn’t it like asides? Is this a feature that I can safely use?

    I have heard people remind me over and over that WordPress can mess up your permalinks if you do not include dates in permalinks.

    However I found that WP does actually recognize and correct the situation. So even if I have Happy New Year in two posts in a blog where date is not part of the permalink, WP automatically changes the new permalink to avoid duplication.

    Again I am assuming this is a features 9and a good one at that).

    Please confirm.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kafkaesqui

    (@kafkaesqui)

    “I realized by accident that I can post without having a title. Isn’t it like asides? Is this a feature that I can safely use?”

    Yes, as long as you make sure you’re providing the permalink somewhere other than to the title!

    “I have heard people remind me over and over that WordPress can mess up your permalinks if you do not include dates in permalinks.”

    If you’re going to customize your permalinks, then it’s a good idea to build an archived structure (i.e. /year/month/day/post/). However, you can set it in a number of ways. Many just use the post ID. However, try to avoid just the post title if you’re not going to use one…

    Thread Starter angsuman

    (@angsuman)

    > Yes, as long as you make sure you’re providing the permalink somewhere other than to the title!

    Actually I use permalinks which is /archive/%title% and it still works like a charm!

    Thanks to Matt & Co for this hidden feature.

    > If you’re going to customize your permalinks, then it’s a good idea to build an archived structure (i.e. /year/month/day/post/).

    We had this discussed in quite some depth in my blog.

    Question: I recently tried to change my permalinks as mentioned above, so it’s just /%title%/ – and I LOVE the shortened URLs, and the fact that wordpress will watch my back by automatically appending a number to any new duplicate post slugs (eg, if I make a post titled “links” and there’s already one, WP will change my postslug to “links-2”).

    My problem is that I have a large number of imported posts, a few of which have duplicate titles. Since I imported these, WP never had a change to catch the duplicate titles. Now, I can manually edit the duplicates to get WP to change the post slug on the duplicates, but the problem is I don’t have any way to get a list of duplicates.

    Can anyone suggest a solution? What I’m looking for is something like a MySQL query that will look for posts with duplicate post slugs or titles, or maybe even a way to display a list of all post titles, sorted alphabetically, so I can catch the duplicates.

    Nevermind – I found a way to get an alphabetical list of all my entries. It’ll take awhile to go through them, but I can at least find the duplicates now.

    <ul>
    <?php
    $posts = get_posts('numberposts=999999&orderby=post_title');
    foreach($posts as $post) :
    ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_date(); ?></li>
    <?php endforeach; ?>
    </ul>

    I have a really strange issue related to title-less posts imported from blogger. WP appended their permalink with a unique number, but the post content does not show up at all within the permalink page. No title, date, or actual post. In addition, the meta info for the post that should show up in the sidebar of the Connections Theme single page is replaced with the “You are currently browsing [this site’s] weblog archives for the day.” It works as expected for other posts.

    I apologize if this issue has been addressed elsewhere, but I just came across this related thread while scanning the forums and thought I’d mention it here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Title-less posts and non-duplicate permalinks: Features?’ is closed to new replies.