chefobat
Forum Replies Created
-
Forum: Plugins
In reply to: [TDO Mini Forms] [Plugin: TDO Mini Forms] Cyrillic turns into question marksDid you manage to fix that somehow?
Forum: Plugins
In reply to: wp insert/create category doesnt refresh hierarchyI know it is an old topic put i have faced the same problem. Following the bug and the bug referenced there the fix that worked out for me was to comment out these 2 lines in
function _get_term_hierarchy at line 2642 in wp-includes/taxonomy.php
// if ( is_array($children) )
// return $children;You have to comment them once, refresh the category page in the admin and then remove the comment in the code.
That is it.
Forum: Plugins
In reply to: [Plugin: CSV Importer] Problem with Cyrillic textTo all,
I have managed to use this great plugin. The process in my case was like that:
1. Installed OpenOffice Calc – yes only this program from the whole package
2. Opened the csv file with Calc.
3. Saved it as ods.
4. Saved the ods file as csv and chose Unicode UTF-8 (I have saved is before as simply Unicode but i guess there are a bunch of Unicode encodings also)Best of luck to all.
regards,
Stefan BatanovForum: Plugins
In reply to: [Plugin: CSV Importer] Problem with Cyrillic textDear Mr. Kobozev ,
Thank you for the quick reply. I’m sorry for the lame question but I had saved the file in notepad as unicode text bu then the plugin returned that the posts were skipped because of missing title. Shall I use OpenOffice Spreadsheet or some other program?
regards,
Stefan BatanovForum: Fixing WordPress
In reply to: Permalinks questionHello f00bar,
First I want to thank you for you replies.
Here is what I did to solve my little problem.
I altered a bit the function redirect_guess_404_permalink in wp-includes/canonical.php
After
if ( !get_query_var(‘name’) )
return false;I added
if ( get_query_var(‘p’) ) {
return get_permalink(get_query_var(‘p’));
}I know this is not the best code but so far it does what i needed.
I’m not good at php but i believe there is some bug in this file
on line 69 is_singular() returns false which is not right. Also even if we enter that if clause and we find the proper post to display we still continue with the rest if the function.
Anyway if someone of the devs reads this form they may want to take a look.
Best regards,
Stefan BatanovForum: Fixing WordPress
In reply to: Permalinks questionhello f00bar,
Because i’m migrating from non-wordpress platform and I have some spelling mistakes in links all over the internet. Don’t ask how that happened … just it’s that way. So I want to keep the links working as they are currently with the engine I use.
I have enabled full query log in mysql to see how wp engine tries to find the proper post to display. Proper postname is
burn-iso-image-with-nero-burning-romI tried to access the same article with
burn-iso-image-with-nero-burning-romanceHere is the result of mysql log
4 Query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_name = ‘burn-iso-image-with-nero-burning-romance’ AND wp_posts.ID = 10 AND wp_posts.post_type = ‘post’ ORDER BY wp_posts.post_date DESC
4 Query SELECT post_id FROM wp_postmeta, wp_posts WHERE ID = post_id AND meta_key = ‘_wp_old_slug’ AND meta_value=’burn-iso-image-with-nero-burning-romance’
4 Query SELECT ID FROM wp_posts WHERE post_name LIKE ‘burn-iso-image-with-nero-burning-romance%’ AND post_status = ‘publish’So I want to find the place where the last select is generated and replace it with some query like
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID = 10 AND wp_posts.post_type = ‘post’ ORDER BY wp_posts.post_date DESC
So that it gets the proper result.
Forum: Fixing WordPress
In reply to: Permalinks questionHello f00bar,
Thanks for the suggestion. I have actually read somewhere else that it is better to use /%post_id%/%postname%/ structure for better performance, however when i tested it that way my original problem did not get solved.
Again http://www.mybwordpressdomain.com/post_id/postname/ and http://www.mybwordpressdomain.com/post_id/postname_with_spelling_mistake/ did not point to the same page. Instead the second one just gave 404 which is what i try to avoid.
Best regards.
Stefan