How to make custom post behave like normal post?

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

Status: not resolved

Tagged: 

  • This topic has 5 replies, 3 voices, and was last updated 5 y, 11 mo by  Max.
Viewing 5 reply threads
  • Author
    Posts
    • #4880

      yaofong
      Member

      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

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

      Login | Register | Forgot Password?

    • #4976

      yaofong
      Member

      Hi,

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

    • #4995

      Max
      Staff

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

      Login | Register | Forgot Password?

    • #5044

      yaofong
      Member

      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

      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 2020 by wpthms.com. All Rights Reserved.