WordPress.org

Ready to get started?Download WordPress

Forums

Custom posts (5 posts)

  1. m3tsys
    Member
    Posted 3 years ago #

  2. Micah Wood
    Member
    Posted 3 years ago #

    If you just want to have a directory structure for your normal WordPress posts, you can create a custom permalink structure. Just type something like this in the box on the permalink page: blog/%post_name%

    This will show all your posts with the /blog/ prefix and then display the name of the post.

    If you want to do this in addition to your normal posts, then you will need to use custom post types. Custom post types allow you to define the slug that appears in the URL just before the title of the post. Here is more info:

    http://codex.wordpress.org/Custom_Post_Types#URLs

  3. Joe
    Member
    Posted 3 years ago #

    Even though you mention custom posts, I'm assuming you want 'seo' and human friendly post title urls, which can be configured from the 'Permalinks' menu link:

    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

  4. m3tsys
    Member
    Posted 3 years ago #

    @joe : i have already configured my links ( /%postname%/ )

    @woodent : I already read that page, but I don't think that helps me

    i want to add content to that custom pages

    http://example.com/postname/

    http://example.com/postname/description

    http://example.com/postname/images

    http://example.com/postname/something

  5. Micah Wood
    Member
    Posted 3 years ago #

    Custom post types will allow you to do what you are describing (*for posts*). For example, lets say you created a custom post type called 'items'. You use the slug 'items' for that post type and create three new posts: 'item-1', 'item-2', 'item-3'.

    This is how the url structure would play out:
    http://example.com/items/item-1/
    http://example.com/items/item-2/
    http://example.com/items/item-3/

    You could then create a page that uses the /items/ slug and has a template that displays all the items you create.

    If you want to achieve this with pages instead, you can simply create a page using the 'items' slug, then create sub-pages. The URL structure will play out the same way.

Topic Closed

This topic has been closed to new replies.

About this Topic