Skip to main content
Included information based on a current answer
Source Link
Amit
  • 99
  • 1
  • 11

I have a website that has a news section which simply shows the most recent 6 posts with a category of news. The problem is that whenever you create a post, Wordpress automatically creates a page for that post. The client claims Google does not like it when you have content showing up on a news section as well as on useless post pages which are not even being linked to.

My question is this: is it possible to duplicate this news section usability (keeping it user-friendly) without having Wordpress create a new post page for every single news item that is published?

And I don't mean just simply excluding the posts from a general post page, because that is already being accomplished. I mean not even generating a page for that post.. That would require a different method (rather than publishing a news item through a post), and I was wondering if said method exists

EDIT:

Thanks to @Rarst, I think I may be getting closer. I performed a test with custom_post_types with the following code:

add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
        array(
            'labels' => array(
                'name' => __( 'Products' ),
                'singular_name' => __( 'Product' )
            ),
        'public' => true,
        'has_archive' => false,
        'rewrite' => array(
            'pages' => false
            )
        )
    );
}

The problem is, I create a new "product" (it should really be "news", but this is just the example provided in the Wordpress documentation), and while it is not archived, a page is still created with the url: http://mydomain.com/?acme_product=test , where 'test' changes based on the name I gave the "product". Is there a way to prevent the site from publishing this page?

Thanks!

I have a website that has a news section which simply shows the most recent 6 posts with a category of news. The problem is that whenever you create a post, Wordpress automatically creates a page for that post. The client claims Google does not like it when you have content showing up on a news section as well as on useless post pages which are not even being linked to.

My question is this: is it possible to duplicate this news section usability (keeping it user-friendly) without having Wordpress create a new post page for every single news item that is published?

And I don't mean just simply excluding the posts from a general post page, because that is already being accomplished. I mean not even generating a page for that post.. That would require a different method (rather than publishing a news item through a post), and I was wondering if said method exists

Thanks!

I have a website that has a news section which simply shows the most recent 6 posts with a category of news. The problem is that whenever you create a post, Wordpress automatically creates a page for that post. The client claims Google does not like it when you have content showing up on a news section as well as on useless post pages which are not even being linked to.

My question is this: is it possible to duplicate this news section usability (keeping it user-friendly) without having Wordpress create a new post page for every single news item that is published?

And I don't mean just simply excluding the posts from a general post page, because that is already being accomplished. I mean not even generating a page for that post.. That would require a different method (rather than publishing a news item through a post), and I was wondering if said method exists

EDIT:

Thanks to @Rarst, I think I may be getting closer. I performed a test with custom_post_types with the following code:

add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
        array(
            'labels' => array(
                'name' => __( 'Products' ),
                'singular_name' => __( 'Product' )
            ),
        'public' => true,
        'has_archive' => false,
        'rewrite' => array(
            'pages' => false
            )
        )
    );
}

The problem is, I create a new "product" (it should really be "news", but this is just the example provided in the Wordpress documentation), and while it is not archived, a page is still created with the url: http://mydomain.com/?acme_product=test , where 'test' changes based on the name I gave the "product". Is there a way to prevent the site from publishing this page?

Thanks!

Source Link
Amit
  • 99
  • 1
  • 11

User friendly news section in Wordpress without using posts

I have a website that has a news section which simply shows the most recent 6 posts with a category of news. The problem is that whenever you create a post, Wordpress automatically creates a page for that post. The client claims Google does not like it when you have content showing up on a news section as well as on useless post pages which are not even being linked to.

My question is this: is it possible to duplicate this news section usability (keeping it user-friendly) without having Wordpress create a new post page for every single news item that is published?

And I don't mean just simply excluding the posts from a general post page, because that is already being accomplished. I mean not even generating a page for that post.. That would require a different method (rather than publishing a news item through a post), and I was wondering if said method exists

Thanks!