168 reputation
112
bio website richardbrattlund.se
location
age
visits member for 4 years
seen yesterday

Dec
1
asked How to concatenate parent theme CSS-files from within a child theme?
Oct
15
awarded  Popular Question
Jul
8
awarded  Notable Question
Jun
10
accepted WP_Query with several meta_query-statements and order by meta_value
May
31
comment Custom taxonomy template
So what's in your taxonomy-directors.php right now? Could you please post some code.
May
31
revised How to permanent redirect old domain to new one. in case amazon store
added 1420 characters in body
May
31
answered How to permanent redirect old domain to new one. in case amazon store
May
31
comment How to permanent redirect old domain to new one. in case amazon store
Is your site located on your own server, a webhotel or what?
May
31
comment Bad Request (Invalid Hostname) on working server, database problem
What home url (and wordpress url) is in the wp_options table? Update: Ah, @GhostToast was faster. :)
May
29
awarded  Benefactor
May
29
accepted Rewrite custom post type url's adding meta box values
May
29
answered WP_Query with several meta_query-statements and order by meta_value
May
29
comment Rewrite custom post type url's adding meta box values
I got rid of the fatal error now, it was generated by xdebug and had something to do with basename(get_permalink()) so I replaced that code with get_post and everything is fine. I'm going to test this for a couple of hours and then give you the bounty, big thanks for your help Matthew! :)
May
29
comment Rewrite custom post type url's adding meta box values
Yay, it seems to be working now! :) But I still get that fatal error, it's in wordpress/wp-includes/cache.php on line 453. I should be able to solve it when trying this on a fresh install but if you have any ideas on the error please let me know. Also, just so I understand this solution, the genre CPT should have 'rewrite' => true right?
May
28
asked WP_Query with several meta_query-statements and order by meta_value
May
28
comment Rewrite custom post type url's adding meta box values
If I remove rb_create_permalinks and replace rb_add_rewrite_rules with your code nothing happens except that the nice permalinks becomes querystrings. If you have time for a chat later, let me know. Thanks! Edit: Oh wait, I might not be allowed to chat here, need better score maybe.
May
28
comment Rewrite custom post type url's adding meta box values
Thanks for your help Matthew, but I can't get this to work. Should I remove the rb_create_permalinks? If I just replace the rb_add_rewrite_rules function with your function, flush rewrites and look at the 'Movies' CPT post listing in wp-admin I get this message: "Fatal error: Maximum function nesting level of '100' reached, aborting!". Also, all permalinks on my site are querystrings now, like "?movies=die-hard" etc.
May
27
comment Rewrite custom post type url's adding meta box values
Sorry for the late resonse! So, basically you're saying this can't be done? Or, can I use those rewrite rules in rb_add_rewrite_rules? I don't get it.
May
27
comment Post title not output correctly
Yeah it works for me, I'm just using the default settings. My home page is a static page though, so I don't know how the default index page acts but all pages should display the sitename in the title by default. Maybe there's something weird with your sitename, special characters etc?
May
23
comment How to add post count to wp_nav_menu?
Oh shit, sorry!