yoch
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP_Cache has some problemsHello
Same results here since upgrading to 3.0
cache is always refreshingForum: Fixing WordPress
In reply to: how to unset default query when using custom querybump..
Forum: Fixing WordPress
In reply to: how to unset default query when using custom queryrjmastey, thanks for the answer.
Yes, I read this. When I have my custom query setup and working, While debugging queries that was made to DB I still can see this ‘regular’ query:
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC LIMIT 0, 10I mean that I don’t need that ‘default’ query anymore, because I got the results with my own query.
How to tell WP to stop executing it?
thanks,
K.Forum: Fixing WordPress
In reply to: custom query to select all tags used in custom post typeThank you, vtxyzzy! Resolved!
Forum: Fixing WordPress
In reply to: Problem with $wpdb->get_resultsI think you should consider to use LIMIT and pagination.
And white screen may occur because of low memory available to WP.
You may try to add to your wp-config.php something like:define('WP_MEMORY_LIMIT', '128M');well..that was obvious and I tried it before asking… but it doesn’t work in header.php
anyway, thank you for the help
Oh, I’m sorry..
Excuse me for the stupid questions 🙂I’m rewriting titles in header.php in this manner:
<title> if (is_front_page()) { echo 'My website';} elseif (is_page()) { wp_title(' ',true,'right'); </title>etc.
Is there any conditional tag for the plugin? For example, if “meta.php” template used – echo something else, instead of title generated by plugin?
I want to use my custom html <title> for the meta search results.thanks for the patience
By the way, is it possible to search for cf values with spaces?
like
/?level=very lownow plugin treats it like two different values – ‘very’ and ‘low’
thanks
Yes
<?php if (have_posts()) : ?> <h2 class="pagetitle"><?php the_meta_title(); ?></h2> <?php while (have_posts()) : the_post(); ?>and so on…
but seems like there is no $post array…
I’ve solved it another way:
‘$custom_fields = get_post_custom();
$level = $custom_fields[‘level’][0];’best,
K.Forum: Plugins
In reply to: [Plugin: Custom Field Taxonomies] CFT use with cyrillic charactersOK, thanks again for the plugin!
best,
K.Forum: Plugins
In reply to: [Plugin: Custom Field Taxonomies] CFT use with cyrillic charactersYes, normal WP search works fine.
my wp-config settings:
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);and “Encoding for pages and feeds” is UTF-8
thanks
K.Forum: Plugins
In reply to: [Plugin: Custom Field Taxonomies] CFT use with cyrillic charactersAlso I noticed that sticky post is always included in search results with 100% relevancy. IS it possible to fix this somehow?
thanks
Forum: Plugins
In reply to: [Plugin: Custom Field Taxonomies] CFT use with cyrillic charactersI’ve tried
self::$query_vars[$key] = mb_convert_encoding($value, "UTF-8", "Windows-1251");in main.php on line 125
Seems like worked…let me know if this correct or there is a better way.
thanks,
K.Forum: Plugins
In reply to: [Plugin: AJAX Login Widget ] Future Work (from v1.0.1)David,
Will be great to add a spam protection, something like 2+2=? or color of the sky=?
In my exprerience this is the best way to stop spammersthanks for the plugin
Forum: Themes and Templates
In reply to: list tags with paginationno way?