How can I put a php or html in the sidebar for Custom Post Types?

How can I put a php or html in the sidebar for Custom Post Types?

I created a custom Custom Post Type. But there is no way to control sitebar for Custom Post Types. In the settings (BeTheme Options -> Getting started -> Sidebars) sidebar you can put only Single Page and Single Post.

To display the sidebar for Custom Post Types, I changed the code threads http://joxi.ru/krDpjzjt4Xdjrp and http://joxi.ru/D2Pj3z3CJ8Wgr3. This is bad, because when you update the theme I lose this function.

Comments

Sign In or Register to comment.