Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #99162
    ce88
    Participant

    Hi, I just created child theme with a custom post type with the template files single-centri.php and content-single-centri.php
    I want to display a sidebar in this post type so I added in the template file the get_sidebar() line, but when I create a new centri post the sidebar don’t work and I just see the word “Array” under the content just before the footer instead that on the right or left side of the post.
    You can see what I’m talking about in this URL: http://www.waterphysiotherapy.com/es/centro-rehabilitacion/aaa/

    How can I fix this problem?

    Thanks

    #99179
    Mahesh
    Participant

    @ce88: The steps are correct. I just checked your site, the sidebar is displaying fine no array() issue. Just the design issue as the sidebar is displaying below the content.
    Let me know further.

    Regards,
    Mahesh

    #99185
    ce88
    Participant

    Thanks for the check, that’s exactly my problem, I want to display the sidebar on the ride side of the content, not below. How can I solve this?

    Thanks

    #99193
    ce88
    Participant

    [Update]


    @Mahesh
    : Just figured out the problem and solved it, thanks for the support.

    #99198
    Mahesh
    Participant

    @ce88: Glad you’ve figured it out. Have a nice day!

    Regards,
    Mahesh

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘sidebar for custom post type’ is closed to new replies.