Showing ads on custom post type

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

Status: resolved

Tagged:  

  • This topic has 5 replies, 3 voices, and was last updated 4 y, 8 mo by  Jacob.
Viewing 5 reply threads
  • Author
    Posts
    • #4810

      yaofong
      Member

      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

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

      Login | Register | Forgot Password?

    • #4828

      yaofong
      Member

      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

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

      Login | Register | Forgot Password?

    • #4834

      yaofong
      Member

      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

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

      Login | Register | Forgot Password?

Viewing 5 reply threads
  • You must be logged in to reply to this topic.

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

© Copyright 2019 by wpthms.com. All Rights Reserved.