WP_Query by just the id?

In the codex for WP_Query I see you can query by page_id=7 for pages or by p=7 for posts. Is there a way to get a post of any post type by ID? Like id=7 that will get it no matter if it’s a page, post or custom post type?

Call sidebar from a template

I need to call a sidebar into my header. I’ve switched to the new twenty twelve theme and created my own child theme. With this new theme I decided to keep things organised and together, so I put my widgets functions, stylesheet and two new sidebar templates (one for header and one for footer widgets) in one folder called pgwidgets.

Changing Woocommerce Product Description

I’ve been changing the way that the Single product page looks. I’ve moved a few things about by hooking into Woocommerce and also editing the css. Out of the box the single product page shows the short description (described as woocommerce_template_single_excerpt in the content-single-product.php file) next to the product image, but I want to show … Read more