Showing ads on custom post type

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

Tagged: ,

This topic contains 5 replies, has 3 voices, and was last updated by  Jacob 2 years, 2 months ago.

  • Author
    Posts
  • #4810

    yaofong
    Member
    Post count: 22

    Hi,

    I have a custom post type which uses the same single.php template, but the ads I set in the theme setting not showing in my custom post.

    How can I show those ads in my custom post?

  • #4821

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4828

    yaofong
    Member
    Post count: 22

    Hi @Maxxi,

    I have copied your code and replaced my_post_type, but the ads is still not showing on my custom post type.

  • #4831

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4834

    yaofong
    Member
    Post count: 22

    Great, the ads is showing now! Thanks Maxxi

    I got another question regarding custom post type, hope you don’t mind.

    I’m using the same template as single.php for my custom post type, the category under the title, besides the “by author’s name in”, is not showing.

    I found that yt_post_meta_description() is responsible for this part of the layout, and the get_the_category_list function doesn’t return any category for my custom post type.

    Any solution?

  • #4839

    Jacob
    Staff
    Post count: 2312

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!