WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing Author Info (7 posts)

  1. Nik_10
    Member
    Posted 1 year ago #

    Hello,
    I am working on a project for school at http://www.nikdesigns.com. )Enter "2680" to view.

    The sub pages of my portfolio tab (http://www.nikdesigns.com/archives/portfolio/justice-for-chloe) use the single post template (I believe) but they look different from my single post blog page (http://www.nikdesigns.com/archives/55).

    I only see one single.php file in the theme folder so I am really confused why one has the comment box and one doesn't. I basically want to remove the author info and the previous and next from the portfolio pages so it looks like a regular page not a post, but leave the blog page with both of them.

    Any ideas?

    Also, does anyone know why my blog post url is ...archives/55? There is no option to edit the link, only "Get Shortcode" which I haven't seen before. I would like it to be url..niks-news/welcome.

    Thanks in advance for the help!

    Nik

  2. maskom
    Member
    Posted 1 year ago #

    for portofolio page use the custom post template.

    create template for portofolio page.

    look this:
    http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
    http://codex.wordpress.org/Post_Type_Templates

  3. Tarsem Singh
    Member
    Posted 1 year ago #

  4. Nik_10
    Member
    Posted 1 year ago #

    I still want the author info and the comment box on the blog posts, but I don't want them on the portfolio posts... I only see the one single.php file but why would the pages look different if they are both running off of the single.php template?

    The single blog page currently has both the author info and the comment box but the portfolio post page only has the author box.

    Shouldn't they both have both elements since they are using the same template?

    Oh, and I changed the permalinks to the post name which worked fin on the blog post but now I get 404's on all of the portfolio post pages.

  5. Nik_10
    Member
    Posted 1 year ago #

    Ok I managed to fix my permalinks issue... I had to rename my "Portfolio" menu to "Work" and now it seems I can successfully use %post_name%.

    So yay for that!

    BUT... I still can't figure out how to remove the author info and the next and previous arrows from my portfolio post pages. Here is an example of the portfolio post http://www.nikdesigns.com/portfolio/justice-for-chloe/

    Can anyone help? Here is the link to the template that I am using as the page to display the categories: http://pastebin.com/ySvMYw9v

    But I think that the actual link that goes to the post is running off of single.php. Here is the code for that: http://pastebin.com/FT0Z8p7w

    The biggest thing that I want to do is remove the author and previous/next from the portfolio category pages ONLY. I still want it on the blog single posts.

    Are these running off of the same php because one has the comment box and one does not.

    Please help!

    Thanks!

  6. maskom
    Member
    Posted 1 year ago #

    in single.php try removing

    <nav class="oldernewer">
          <div class="older">
            <?php previous_post_link('%link', '&laquo; Previous post') ?>
          </div><!--.older-->
          <div class="newer">
            <?php next_post_link('%link', 'Next Post &raquo;') ?>
          </div><!--.newer-->
    </nav><!--.oldernewer-->
  7. Nik_10
    Member
    Posted 1 year ago #

    Thanks Maskom! I did that and it removed the previous/next from both the blog page and the portfolio posts.... which I don't want.

    But... it didn't remove the author info.

    Is there a way I can keep the previous/next on the single blog post while removing it from the portfolio post?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic