New Landing How can we help? Cardinal Author Archive Link instead of Author Site Link in Posts Headers

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #111075
    Anonymous
    Inactive

    I’m using “Detail Media” + “Post Meta” Image with Title Overlay, so the posts have the “By Author in Category” bellow the Post Title and stuff.

    But I want to use the “Author Archive” link instead of “Author Site” link, ’cause makes much more sense, since the author box doesn’t have links at all.

    So… how do I change that?

    Thanks! 😉

    #111423
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    You need to edit some codes for that, I can give which file to edit. \wp-content\themes\cardinal\swift-framework\content\sf-post-detail.php and in line #48 you will see this code

    get_the_author_link(); it takes you the author archive link, if you want to get that as the author website, change that too http://codex.wordpress.org/Function_Reference/the_author_url

    PS: Careful, with code edits. Take the backup of the file before start editing.

    Let us know,

    Thanks,
    laranz.

    #112181
    Anonymous
    Inactive

    I found the line and changed to “get_author_posts_url”, but the URL replaces the Author Name and is not clickable anyway.

    #112384
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Did you replace that with this?? http://codex.wordpress.org/Template_Tags/the_author_meta could you pass me the WP Login details, So we can check whats going on.

    Thanks,
    laranz.

    #112607
    Anonymous
    Inactive

    No. I used “get_author_posts_url” ’cause I want to link the Author Name with the Author Archive Page instead of the Author URL (Personal Site and stuff). O.o

    #112844
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    This will “get_author_posts_url” http://codex.wordpress.org/Function_Reference/get_author_posts_url still gets the authors posts page URL, you want to take the Author URL given in their profile page right?? then you need to form a link with the author website around his/her name, please use this codex to form it http://codex.wordpress.org/Template_Tags/the_author_meta

    Let us know,

    Thanks,
    laranz.

    #112902
    Anonymous
    Inactive

    I tried everything and nothing… and I don’t understand your explanation too, to be honest. :/

    The only thing I did is changing line 48 to $post_author = get_the_author(); so I remove any link. I tried to crate a link around the name too, but doesn’t works.

    Please, just include this in the next update. A link to the Author Archive in Post Details (instead the Author Site Link) and other in the Author Box (bellow the post), ’cause makes WAAAY more sense then the current setup.

    Thanks!

    #113059
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Sorry for making you confused, I think I understand it wrong. Can you post your website to take a look at it, but by default it will take you to the Author ‘s archieve page only.. If possible also post the WP Login details ( in a private reply ). Once again sorry for making you confused.

    Let us know,

    Thanks,
    laranz.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register