Plugin problem. Question is not appearing.

From plugin’s page FAQ: If your updating makes your site inaccessible and your posts, questions return a 404 Error page, don’t panic, all your posts are still there and safe. What you need to do is fix the permalink settings of the DW Question & Answer plugin. Make sure you are following instructions from “Permalink … Read more

Custom Background Image per Page

You really just need to check the source. get_background_image() uses get_theme_mod(), which applies the theme_mod_{$name} filter. So… function alter_background($name) { // return something apporpriate for the theme mod } add_filter(‘theme_mod_background’,’alter_background’); Note: the “name” component may be different. Use var_dump(get_theme_mods()); to work out what you need.

Page templates for custom post types

You can certainly set up a page template for custom post types. Give this a whirl: <?php /* Template Name: Your template name */ // Get header get_header(); ?> <div id=”primary”> <?php // Query post type $the_query = new WP_Query( array( ‘post_type’ => ‘cpt_name’, ‘posts_per_page’ => -1 ) ); if ( $the_query->have_posts() ) : ?> … Read more

Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?

Yes this is possible. Add the following to either your plugin code or the theme’s functions.php file: function mypo_parse_query_useronly( $wp_query ) { if ( strpos( $_SERVER[ ‘REQUEST_URI’ ], ‘/wp-admin/edit.php’ ) !== false ) { if ( !current_user_can( ‘update_core’ ) ) { global $current_user; $wp_query->set( ‘author’, $current_user->id ); } } } add_filter(‘parse_query’, ‘mypo_parse_query_useronly’ ); Reference original … Read more

is this a bug or not?

No it’s not a bug. Pages are effectively a Post Type and so is your Custom Post Type. So assuming you created a Page called news but then you declared a new CPT also called news then WordPress can’t determine which is correct. To explain this another way, if you were to create a page … Read more

Is it possible to create more than one design in a WordPress theme? [closed]

It is definitely possibly to create 3 (or more!) layouts within a WordPress theme. It all depends on your skill level and comfort with PHP and WordPress if you can do it yourself. WordPress allows for creation of multiple page templates within your theme (http://codex.wordpress.org/Page_Templates#Creating_a_Page_Template). WordPress also allows for creation of multiple menu location with … Read more