xorax
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sidebar 2 widget edits can’t be saved–Missing “Save Changes” buttonok
register_sidebar(array(
‘id’ => (MUST BE STRING AND NOT INT !!!),
));Forum: Fixing WordPress
In reply to: Sidebar 2 widget edits can’t be saved–Missing “Save Changes” buttonI am into 2.8.4 and have the same problem but I’ve not time to fix it !
Forum: Plugins
In reply to: wp_cache_delete not work with options autoloadedForum: Plugins
In reply to: wp_cache_delete not work with options autoloadedhelp? do I have to open a ticket?
Forum: Fixing WordPress
In reply to: Pingbacks don’t work on pages but on posts onlythank you to have opened a ticket.
for find post_id of an url with the actual version, I tested :
$id = url_to_postid($url); if(!$id){ $pages = preg_replace('#^.+/([^/]+)/*$#','$1',$url); $query = new WP_Query('pagename='.$pages); if($query->is_page) $id = $query->post->ID; }
that work on me and, I think, for others installations.
Forum: Fixing WordPress
In reply to: Pingbacks don’t work on pages but on posts onlyI’ve the same problem.
Your code is not up to date but thank you to have directed me.url_to_postid() NOT work with static page url in the last stable version.
Forum: Plugins
In reply to: set limit of post in rss feedbut not :
if (is_feed() && !empty($_GET['nolimit']) ){ add_filter(....
is_feed() == false ??
Forum: Plugins
In reply to: set limit of post in rss feedno soory it work ??
Forum: Plugins
In reply to: set limit of post in rss feedhumm I don’t know why but your solution doesn’t work…
Forum: Plugins
In reply to: set limit of post in rss feedok, I have find the action who call the hook function just before the query, it’s ‘pre_get_posts’ :
if(!function_exists('ongetfeed')) { function ongetfeed (){ if(is_feed() && !empty($_GET['nolimit']) ){ add_filter('post_limits',"setpost_limits"); } } } if(!function_exists('setpost_limits')) { function setpost_limits ($s){ return ''; } } add_action('pre_get_posts','ongetfeed',1);
and it’s all right!
really thanks Otto42
this is my first plugin experience in wordpress, and I notice that the facility of installation for the users is reflected on the difficulty of coding… And the online documentation is very bad… think more/some debugs functions should be implement.
for informations my plugin will download the associed sounds of ReadSpeaker (feed talker) and implement them in the posts.
thanks again!
Forum: Plugins
In reply to: set limit of post in rss feedit’s right, some error ??
I have define(‘SAVEQUERIES’, true); and I can view all query.
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND (post_type = 'post' AND (post_status = 'publish' OR post_status = 'private')) ORDER BY post_date DESC LIMIT 0, 10
but post_limits does not work again…
When print_r($GLOBALS) is run, (in function ongetfeed()) this query is already run and appear in
[wpdb][queries][7][0]so, when the first hook action is running (I think ‘do_feed_rss2’), the request has been already run ! and so my filter has no way…
Forum: Plugins
In reply to: set limit of post in rss feedno change…
the filter ‘post_limits’ does not modify the request.If I watch all globals var (print_r($GLOBALS)) in hook function, I can see :
[last_query] => SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN(156,155,154,149,148,146,145,144,143,142) ORDER BY post_id, meta_key
so reset limit is apparently not the solution… but what is it ???
Forum: Plugins
In reply to: set limit of post in rss feedyes but I want to set it temporary in a plugin