How to make custom post behave like normal post?

This topic is: Not 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  Max 2 years, 1 month ago.

  • Author
    Posts
  • #4880

    yaofong
    Member
    Post count: 22

    Hi,

    I want to create a custom post type that behave the same as single post.

    Here are some of the unsolved problem I encountered in my custom post:

    1. Category not showing (got the answer in another post I asked earlier)

    2. The row under the post title not showing, which contain social sharing, date, number of comments, post view, number of shares. The content is right under the post title.

    2. The custom post page ends right after the content ends. The author area, post navigation, and even the comment area (Jetpack) is not showing.

  • #4899

    Jacob
    Staff
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #4976

    yaofong
    Member
    Post count: 22

    Hi,

    I tried the method above. It’s not working 🙁

  • #4995

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #5044

    yaofong
    Member
    Post count: 22

    Hi,

    I’m still exploring on this custom post topic on my own, still can’t get it. I really need this to work 🙁

    But I found that the custom post is not(could not) executing these code in theme-hooks.php

    add_action( 'yt_after_loop_singular_post','yt_site_single_post_author', 5);
    add_action( 'yt_after_loop_singular_post','yt_site_single_post_dir_nav', 10);
    add_action( 'yt_after_loop_singular_post','yt_site_single_post_related_articles', 10);
    add_action( 'yt_after_loop_singular_post','yt_site_single_post_you_might_also_like', 20);
    add_action( 'yt_after_loop_singular_post','yt_site_single_post_comment', 20);

    maybe you could tell me some hints?

  • #5054

    Max
    Staff
    Post count: 3150

    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!