I've been trying to figure out a little problem since yesterday. I made a CPT that is supposed to be posts that are styled and use the same template as regular posts in wordpress.
When I bring up a CPT post for this, the page's layout is messed up.
Both a regular post and a CPT post query the single.php file, so from what I've learned, they should both look identical, except they do not.
I went into the console and found that the divs were incorrect to start with.
This is what I saw for a regular post calling single.php:
As you can see, the sidebar-container is supposed to be nested inside "div=container > div= inner-box". But in the CPT post the sidebar-container is outside of the "div=container".
I have gone through single and content php files to see if I placed any extra divs and such. Like I said, the regular post is styled perfectly and everything works fine on it.
I am making a content-cptname.php file and a single-cptname.php file so I can work on the problem without interfering with the single.php and content file I already have.
I would like to know what I am possibly doing wrong here, what is potentially causing this problem since these two posts are supposed to be identical.
Please let me know if you want to see anymore of the site, like the functions code for the CPT.