111 reputation
16
bio website
location Jyväskylä, Finland
age
visits member for 2 years, 3 months
seen yesterday

Mar
6
comment When is admin_init Action ran?
You shouldn't put flush rules call to admin_init precisely as it's run everytime one loads a admin page. Instead run it when activating, deactivating a plugin, or if the plugin has settings page the when you save the new settings.
Nov
28
revised Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
Forgot to include directory separator replacion for further namespaces.
Nov
27
answered Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
Nov
27
comment How to get any type posts include attachments by ids?
Note: 'post_status' => null cannot work since WP_Query checks this using empty() and reverts to defaults. But 'post_status' => array(null) might work depending on the SQL it creates, though it's a bit hackish.
Jan
6
awarded  Notable Question
Apr
17
awarded  Popular Question
Jan
7
awarded  Teacher
Jan
7
comment Wordpress 3.3 custom post type with /%postname%/ permastruct?
EP_NONE -> EP_PERMALINK to get comment pages working, and then to get multiple post types working with /%postname%/ you must also use parse_query filter. See my answer above.
Jan
7
answered Wordpress 3.3 custom post type with /%postname%/ permastruct?
Jan
6
comment Wordpress 3.3 custom post type with /%postname%/ permastruct?
@RobVermeer Noticed that without the line (with just default slug), the WordPress is already capable of redirecting to the url. E.g. "some-post" redirects to "anything/some-post". In codespeak, somewhere in the code there is a support for CPT's without slug it just defaults to redirect. face palm
Jan
6
revised Wordpress 3.3 custom post type with /%postname%/ permastruct?
not working correctly.
Jan
6
answered Wordpress 3.3 custom post type with /%postname%/ permastruct?
Jan
6
revised Wordpress 3.3 custom post type with /%postname%/ permastruct?
Question was apparently ambigous.
Jan
6
comment Wordpress 3.3 custom post type with /%postname%/ permastruct?
No it does not, it only explains how it works in terms of SQL. But no mention of custom post types, which is the problem.
Jan
5
awarded  Student
Jan
5
awarded  Promoter
Jan
1
awarded  Editor
Jan
1
revised Wordpress 3.3 custom post type with /%postname%/ permastruct?
remove pages, it happens to be about pagination
Jan
1
asked Wordpress 3.3 custom post type with /%postname%/ permastruct?
Jan
1
comment Using /%postname% for a custom post type
The WP 3.3 proudly advertises: "Use the postname permalink structure without a performance penalty", but does not mention can we use it with custom post types? And especially how to do so?