zezepedro
Forum Replies Created
-
Forum: Plugins
In reply to: Struggling to exclude ‘admin_head’ for some admin pages!Yes Harknell, that works. Thank you.
However I also found another way to solve my problem. It uses an if statement just before the path to the script is printed. Check the code below to get the idea.
function myplugin_add_mootools(){ $url = get_settings('siteurl'); $plugin_page = stripslashes($_GET['page']); $plugin_page = plugin_basename($plugin_page); if($plugin_page=="pagename") echo '<script type="text/javascript" src="'.$url.'/wp-content/plugins/myplugin/mootools.v1.11.js"></script>'; } //---------------------------------------------- add_action('admin_head', 'myplugin_add_mootools');I’m using this solution. Mootools script is only being included in my plugin admin pages. The rest of the WP admin interface remians unchanged.
Forum: Fixing WordPress
In reply to: 404 error but page displays HELPI’m experiencing a similar problem. see here http://wordpress.org/support/topic/122042?replies=1
This is my .htaccess file under the blog/ directory in my site root:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule># END WordPress
I have WP installed under blog/ directory in my site root.
The pages under blog/ and / actually don’t return 404 code. Instead all pages that are under different directories return 404 code:/var/www/site/ (200/OK)
/var/www/site/blog/ (200/OK)
/var/www/site/anyotherdir (404/ERROR) – not indexed by search engines but still able to see on browserIf I disable pretty permalinks the problem goes away.
hel apreciated.
Forum: Plugins
In reply to: Instalation problem with plugin anotherFlickrForget the last post. The problem with my installation is the following:
All I see is a spinning icon after I put the following code in one of my template files:
<div class=”flickrPics”>
<?php get_flickrSets(); ?>
<?php get_flickrOrder(); ?>
<?php get_flickr(); ?>
<center><?php get_flickrNav(); ?></center>
</div>At the end of the file I have <?php get_footer();?> like it is recommended. Is there any other aspects I should be paying attention to?
I can see my pictures perfectly in the administration panel preview. Only when I try to integrate the plugin in my theme, the never endless spinning icon apears.
Help apreciated. Thanks.
Forum: Your WordPress
In reply to: How to show posts from all categories except category “X”That’s it Otto42!
Thanks for your help.
I was writing the “ALready found the solution” post while you posted. Didn’t see your answer before. It would definitely have provided me with the solution.
I’ll mark this topic as resolved.
Bye.
Forum: Your WordPress
In reply to: How to show posts from all categories except category “X”ALready found the solution ->
query_posts()Should have looked better in the codex docs for this first.
My example category ‘M’ has the ID 3. So this is how I’m showing no more than 10 of my latest posts from all categories except M:
... <?php query_posts("cat=-1&showposts=10"); while (have_posts()) : the_post(); ?> ... ?> <?php endwhile; ?>If by chance you are facing the same situation I was, please read more in this codex doc: (it’s all there)
http://codex.wordpress.org/Template_Tags/query_posts
Cya.