September 11, 2016 at 8:01 pm #99162
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?
ThanksSeptember 12, 2016 at 10:21 am #99179MaheshKeymaster
@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.
MaheshSeptember 12, 2016 at 1:33 pm #99185
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?
ThanksSeptember 12, 2016 at 3:25 pm #99193
@Mahesh: Just figured out the problem and solved it, thanks for the support.September 12, 2016 at 5:05 pm #99198
- The topic ‘sidebar for custom post type’ is closed to new replies.