How does WordPress know where the plugins are located?

It’s false that a plugin file is not required to be in the standard plugin folder. This plugin folder is defined by the constant WP_PLUGIN_DIR, whose value is WP_CONTENT_DIR . ‘/plugins’. And if you open /wp-includes/load.php, you will find that function wp_get_active_and_valid_plugins(), defined by function wp_get_active_and_valid_plugins() { $plugins = array(); $active_plugins = (array) get_option( ‘active_plugins’, … Read more

Plugin Translation project not found

Translating WordPress plugins is an experimental project. Not all plugins listed in the repo are available yet. Quoting the translating WordPress page, The project currently contains only a couple of experimental plugins for translation.

To set a post is new/old in vertical scrolling

Try this: <marquee onmouseover=”this.setAttribute(‘scrollamount’, 0, 0);” onmouseout=”this.setAttribute(‘scrollamount’, 2, 0);” behavior=”scroll” width=”100%” loop=”infinite” direction=”up” scrollamount=”2″ scrolldelay=”.0001″ height=”300″> <?php $the_query = new WP_Query( ‘showposts=10’ ); $now = current_time(‘timestamp’); $still_new = 60*60*24*10; // 10 day window while ($the_query -> have_posts()) : $the_query -> the_post(); if ( $now – get_the_time(‘U’) > $still_new ) { ?> <li class=”noticboard”><h3><?php the_time(‘d/m/Y’); ?>&nbsp;</h3> … Read more