Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Nov
10
comment Custom Post Type doesn't use single.php or single-{custom_post_type}.php
You even shouldn't use flush_rewrite_rules() in your theme, it is not in theme scope, You can write and small plugin and use this code add_action( 'after_switch_theme', 'flush_rewrite_rules' ); to flush rewrite rule for custom post type only when you change theme . Or only updating permalink structure once from Admin Menu >> Settings >> Permalinks will make it work fine there too.
Sep
24
awarded  Autobiographer
Dec
9
comment How do I enforce a specific custom post type on the loop
Additionally if you want to keep default post types too use: [code] global $wp_query; $args = array_merge( $wp_query->query_vars, array( 'post_type' => 'product' ) ); query_posts( $args ); [/code] more details: codex.wordpress.org/Function_Reference/query_posts
Dec
9
answered How do I enforce a specific custom post type on the loop
Dec
9
awarded  Editor
Mar
16
awarded  Supporter
Feb
7
comment How to properly create a child theme
Template files are optional if you include it will be use otherwise it will use from parent theme
Feb
7
answered How to properly create a child theme
Feb
7
answered Importing WP settings to another host
Feb
7
answered Can you use add_filter() inside other function?
Feb
7
answered Wordpress: Remove link in the_tags
Jan
7
awarded  Teacher
Jan
7
answered How to access variables from Functions file in theme files
Jan
7
answered How do I remove all traces of a plugin?
Dec
28
comment WP 3.3 Tooltips API?
it's as easy as 123, i got a very nice tutorial here wpeden.com/how-to-use-wp-pointer-tooltip-in-wordpress-3-3 .
Aug
10
answered WordPress eCommerce plugin for books