Tagged: sidebar
- This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago by Mahesh.
-
AuthorPosts
-
September 11, 2016 at 8:01 pm #99162ce88Participant
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
September 12, 2016 at 10:21 am #99179MaheshParticipant@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,
MaheshSeptember 12, 2016 at 1:33 pm #99185ce88ParticipantThanks 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
September 12, 2016 at 3:25 pm #99193ce88Participant[Update]
@Mahesh: Just figured out the problem and solved it, thanks for the support.September 12, 2016 at 5:05 pm #99198 -
AuthorPosts
- The topic ‘sidebar for custom post type’ is closed to new replies.