WordPress.org

Forums

Post Author
[resolved] Support for Custom Post Types (4 posts)

  1. mkvgs
    Member
    Posted 1 year ago #

    First off, really like this plugin! Question - does it support custom post types? I've created one, and I'm not seeing the checkbox on the bottom that says, "Hide author for this article (Post Author plugin)"; I'm only seeing the list of authors, and the author info. is displaying in the post (and I want to hide it.)

    Thanks.

    https://wordpress.org/plugins/post-author/

  2. sijo55
    Member
    Posted 1 year ago #

    I would also have a choice to hide Post Author in custom post types.. Please?

  3. sijo55
    Member
    Posted 1 year ago #

    I have managed to fix this temporary.
    In post_author.php find:

    function add_author_to_post($content)
    {
        $content_org = $content;

    And change it to:

    function add_author_to_post($content)
    {
        global $post;	if ($post->post_type == 'sp_player' OR $post->post_type == 'sp_team')	return $content;
        $content_org = $content;

    Change 'sp_player' and 'sp_team' to your custom post types.

  4. David Shabtai
    Member
    Plugin Author

    Posted 12 months ago #

    Good news, we are planning support for custom post types in a major upgrade.

    We'll keep you posted.
    David.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Author
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic