Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lefturns190

    (@lefturns190)

    To clarify, when I said “below”, I was referring to a prior post on the subject that offered a fix for this issue if using the default theme. That did not work with the iNove theme.

    Hi,

    You need to add a bit of code into your current active theme’z page.php file. You can get the code from mentioned URL:

    [moderated spam link]

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Shane’s URL is not the WordPress KB. WordPress’s official ‘knowledgebase’ would be at https://codex.www.ads-software.com (not that shane’s link is bad, but there is a difference). You don’t want to change page.php unless you just mean to change the Pages and not the posts.

    If you want your blog posts (NOT pages) to have the author, you need to edit single.php

    See https://codex.www.ads-software.com/Template_Tags/the_author

    You can add it as a name, or a link to the profile page, as you see fit ??

    Use https://codex.www.ads-software.com/Template_Tags/the_author_link if you want to have it linked to their author page.

    Thread Starter lefturns190

    (@lefturns190)

    Thank you both very much! I wanted to change both the posts and the pages. It worked, but is there a way to make the link open a new browser window, instead of making the visitors leaving the site?

    Thread Starter lefturns190

    (@lefturns190)

    For those interested in the question I tagged on at the end, to make the link open in a new browser window, do the following

    <h2 class="title-1"><a href="<?php the_permalink() ?>" target="_blank" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Thanks to Hedley for that. ??

    This feature will be added to the next version, and the new version is coming soon. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Author To Posts’ is closed to new replies.