WordPress.org

Ready to get started?Download WordPress

Forums

Posting on Specific Pages ??? (6 posts)

  1. NfiniteT
    Member
    Posted 1 year ago #

    My blog is fantasybookblog.com. I just set up a dedicated page for book reviews. When I wrote a book review post, there was no way to make it show up on the dedicated page. It is showing up on the regular page. I can access all book reviews via Categories but how do I get posts to show up on the book review page?

    I ask because the Yoast Seo plugin is telling me I need to set up a "cornerstone page" because of keyword frequency. This seems to require a dedicated page but I can't figure out how to make this happen. This is the link the plugin sent me to: http://yoast.com/cornerstone-content-rank/

    How do I make the book review posts show up on the book review pages?

  2. Shaun Scovil
    Member
    Posted 1 year ago #

    If you have a category called Book Reviews (with a slug of book-reviews), then the archive page for that category should be http://fantasybookblog.com/book-reviews without you needing to create a page for it.

    If you want to create a custom page template for that category archive, you could create a file in your theme folder called archive-book-reviews.php and that template would automatically get used whenever someone visits http://fantasybookblog.com/book-reviews.

    All that aside, if you still want to show an archive of book reviews on a Page, you would want to create a custom page template and add a function like this to your theme's functions.php file:

    function my_book_reviews_template( $query ) {
        if ( is_page( 'reviews' ) { // Replace 'reviews' with the slug for your review page
            $query->set( 'category_name', 'book-reviews' ); // Replace 'book-reviews' with the slug of your category
        }
    }
    add_action( 'pre_get_posts', 'my_book_reviews_template' );
  3. NfiniteT
    Member
    Posted 1 year ago #

    So to do this, I need to log in to the admin where the blog is posted, right? I can't seem to get it to work by going through WP

  4. Shaun Scovil
    Member
    Posted 1 year ago #

    Sorry, my answer may have been a bit too technical. Basically, you can just create a menu link to the 'Book Reviews' category archive by going to WP-Admin > Appearance > Menus. Then whenever someone clicks that category in your navigation menu, they will be brought to an archive page for that category.

    If you want to customize this page a bit, that would require adding or modifying theme files (like I explained above), which should really be done via FTP rather than through the WP-Admin interface.

  5. NfiniteT
    Member
    Posted 1 year ago #

    I think I'm going to have to change themes. I'm using the Skirmish theme and it doesn't appear to support the Custom Menu Widget.

  6. NfiniteT
    Member
    Posted 1 year ago #

    Nope, not going to have to change themes. I just needed to check the box for: Automatically add new top-level pages. That added links to all the category pages to the menu bar.

Topic Closed

This topic has been closed to new replies.

About this Topic