Correcting the content width when sidebar is inactive?

You could try something like this, within your sidebar.php file: if ( ! is_active_sidebar (‘SIDEBAR-NAME-OR-ID’ ) ) { echo ‘<style>.main-content { width: 960px; }</style>’; } This is hackish, but it should work for what you’re trying to do. There may be a better method but its hard to know without more context. The above code … Read more

Custom template for different post types

I’d recommend Custom Post Types : http://codex.wordpress.org/Post_Types#Custom_Post_Types You can add appropriate meta boxes to each post type : http://codex.wordpress.org/Function_Reference/add_meta_box You can define specific front end templates for each post type : http://codex.wordpress.org/Post_Types#Custom_Post_Type_Templates Instead of a dropdown, you would have distinct menu items for each “thing” ( Review, Albums, etc ).

How to get post_content while the post is being edited

All the rendered content of the page is available to the page. How would it be rendered otherwise? jQuery(‘#content-textarea-clone’).html() gives you the current contents of the editor window, using jQuery. And jQuery(‘textarea#content’).html() holds the initial content of the page (the saved one).

Adding editable content above posts

I have a few thought on this. You can very easily build yourself a dynamic area above your posts for the purpose of information or announcements I prefer to make use of a non-hierarchical custom post type for this purpose. Just something very simple. No taxonomies attached. The custom post type should also not have … Read more

Content alignment in Twenty Fourteen Theme

I recommend a tool like firebug (http://getfirebug.com/). It will give you the precise values and locations of the applicable css-styles in your style.css. If you use the same file in both installations there should be no differences except for different content or different devices.

Advanced sorting of content in wordpress [closed]

All what you want to do you can get just with ordinary custom fields. I can imagine custom fields like colour, age, brand etc. and theirs filtering according to user’s selection in frontend. Please read about custom fields here https://codex.wordpress.org/Custom_Fields There are some awesome plugins for creating custom fields too. One of my favourite is … Read more