Cannot see theme in my search

Themes (and plugins for that matter) in the wordpress respitory are uploaded to wordpress.org by their respective authors. These themes and plugins are not written or updated or maintainted by the WordPress team who are responsible for WordPress core. These plugin and theme authors are normal members of the public like you and me. It … Read more

How do I link a Post Type to a Template in Masterplan?

I have never used Masterplan nor Masterpress, however as far as the template hierarchy is concerned, it seems to be no different from the standard WordPress way of dealing with it – See Masterpress Docs I assume that if your (Custom) Post Type is correctly registered through Masterpress interface, it should be registered in WordPress. … Read more

How to remove current theme customizations

What do you mean by “customization”? Modifying the theme’s PHP, or modifying some settings the theme creates? Most themes do not clean up after themselves when they are deactivated or deleted. So for many themes, there is no easy way to flush their data. This is actually a good thing, if you want to switch … Read more

Understanding wp_enqueue_style

Scripts and styles get output with wp_head and wp_footer functions. If you enqueue a style after wp_head, it will be output in wp_footer, which, while in practice will often work, means the theme’s html will not validate. It’s up to you (or whomever is building a theme/plugin) to enqueue styles early enough to be output … Read more

Never actually adding the action? Or do I have to call the action?

You are using after_theme_switch action but the correct name is after_switch_theme. Also, you won’t see the echo statements on after_theme_switch and switch_theme. To debug things in that hooks you can use, for example, error_log() function and look for messages in PHP error log file (you need to have errors “On” and/or WP_DEBUG enabled). I’ve tested … Read more

Create a Page template selector page

You could develop your own metabox for the page (with custom styling, probably) that allows selection of the template. I don’t know that generating screenshots is feasible, but you could definitely have it pull from some sort of associated file (eg: template name is template-name.php, screenshot is template-name.png). With the replacement selection method generated, you … Read more