marsev
Forum Replies Created
-
Forum: Plugins
In reply to: [Resize images before upload] Not working with IE9It works, thank you very much.
Forum: Plugins
In reply to: [Resize images before upload] Not working with IE9Yes, I did. It works perfectly with Firefox
+1 ??
My fault, something was wrong with my page template ??
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?I got it :-): the shown posts were all sticky posts. Now with
'post__not_in' => get_option( 'sticky_posts' )
everything works fine.However … this is not very “intuitive” :-/.
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?It gets worse: The query fails everywhere, even when no other query was loaded before (plain php-page which includes wp-config.php) ???
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?Still 21 posts :-/
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?I reduced the complexity of the query to the minimum. The following query returns me a total of 21 posts although it should be only one. As you can see I did a reset for the query first.
wp_reset_query(); $posts_list = new WP_Query( array ( 'post_type' => 'post', 'posts_per_page' => -1, 'post__in' => array ( 1723 ) ) ); if ( $posts_list->have_posts() ) { echo $posts_list->post_count; }
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?I am looking for posts where a custom field has a specific value (a given post_id). In most cases the custom field is not set.
After trying with more simplier queries I assume the problem has nothing to do with my specific query. Querying a specific post works just fine (“p”) but querying an array of posts (“post__in”) already fails (posts are shown that are not in that list).
Forum: Fixing WordPress
In reply to: Something seems wrong with WP_Query, how to debug?Yeah thanks, I know that reference and use it quite often. But it does not help me solving this specific problem. All methods of wp_query indicate that there are more posts returned than it should be the case. And I do not see any error in my query (especially in the very simple one).
I assume that some special side effect is playing a major role in the error. But how to check that?
Forum: Networking WordPress
In reply to: Permalinks cannot be changed any longerIndeed, it was my theme :-/. The evildoer was:
remove_meta_box( 'slugdiv', 'post', 'normal' );
All I wanted to do was to make this unnecessary/duplicate slug field invisibly. I did not know that it was essential for functionality. Thanks :-).
Hi Braekling,
I really like your “2 way approach”: WP-Piwik and WPMU-Piwik. I’m fine with the central management because that is what I was looking for. The new version works perfect, no problems on my site.
But taking the critics serious, perhaps it would be better to rethink the “network activate” thing. WP multisite comes with a folder “mu-plugins”. Perhaps this would be the better place for activating WPMU-Piwik with central management. At least other plugins are doing it that way. Unfortunately you loose the possibility to auto-update plugins located there.
Best redards
Forum: Networking WordPress
In reply to: Cannot access network admin from main blog! Bug?Well, I must have been either blind or the thread titles weren’t there whenn I looked before :-/
I inserted
define('NOBLOGREDIRECT', 'https://domain.com');
and now it works.
Thanks for your patience.
Forum: Networking WordPress
In reply to: Cannot access network admin from main blog! Bug?Thanks, I could not find similar threads with a quick search. Hope it gets fixed soon.
Forum: Hacks
In reply to: Problem with using ajax on frontendI have a button in the frontend. After klicking that button I would like wordpress/php to spit out some html which I can than display dynamically with js. The functionality should be embedded in a page-template.
Quite the same behaviour is easy to develop in the backend because the js-global “ajaxurl” is already set. But in contrast it is not set in the frontend.
The link is: https://www.bundjugend.de/termine/ There is a form, where I can filter entries that are shown below that form. The functionality is by now implemented with new loading the whole page. I would love to replace that with ajax.
Thanks for help.