Thiago Fernandes
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Manager] Styles conflicting with other pluginsRolling back to previous versions until bug is fixed..
Forum: Plugins
In reply to: [Download Manager] Styles conflicting with other pluginsTheres a naming conflict to me too.
the
.greenclass for example, is too wide for a plugin. I was using it on my theme and the names crashed.Forum: Fixing WordPress
In reply to: XML-RPC API wp.getPosts custom filterYes, not possible.
Fastest solution is to install the Entended API plugin and use its methods to query your data.
There’s a small fix you need to make in the main.php line 65. Just remove the & from the $args variable.
Use at your own risk.
IMHO the shortcode, even with no validation at all (eg. to be implemented as will), would be a very nice feature/addon.
I can save the default sidebars on the configuration tab (use the inspector) but does not work yet on the front-end. Deativected?
Have anyone dig into this? Or at least can tell on which version this functionality works?
Plenty goodness to be broke.
Forum: Plugins
In reply to: [Magic Fields] [Plugin: Magic Fields] Version 154 and DatesYou can also, for the date problem (more recommended), switch all your dates to the new format. In this case you do not need to handle multiple formats, only the new one (yyyy-mm-dd).
Try this query
UPDATE wp_postmeta SET meta_value = STR_TO_DATE( meta_value, '%m/%d/%Y' ) WHERE meta_key = 'date-field-name' AND STR_TO_DATE( meta_value, '%m/%d/%Y' ) IS NOT NULLREMEMBER to backup your table first. You should change the old value format to yours.
Forum: Hacks
In reply to: Load WP Core in another Framework (SHORTINIT WP_QUERY)Ended up with this running code on my External Application (little testing)
define( 'ABSPATH', $this->wordpress_path . '/' ); define('WP_USE_THEMES', false); define('WP_ALLOW_MULTISITE', false); define('SHORTINIT', true); //Use this for MU Installations (need to configure wp-config to see this var) define( 'TABLE_PREFIX', 'wp_8_' ); //Default load require( ABSPATH . 'wp-config.php' ); //Loading code from wp-settings after SHORTINIT require( ABSPATH . WPINC . '/l10n.php' ); require( ABSPATH . WPINC . '/formatting.php' ); require( ABSPATH . WPINC . '/capabilities.php' ); require( ABSPATH . WPINC . '/query.php' ); require( ABSPATH . WPINC . '/user.php' ); require( ABSPATH . WPINC . '/meta.php' ); require( ABSPATH . WPINC . '/general-template.php' ); require( ABSPATH . WPINC . '/link-template.php' ); require( ABSPATH . WPINC . '/post.php' ); require( ABSPATH . WPINC . '/comment.php' ); require( ABSPATH . WPINC . '/rewrite.php' ); require( ABSPATH . WPINC . '/script-loader.php' ); require( ABSPATH . WPINC . '/taxonomy.php' ); create_initial_taxonomies(); create_initial_post_types(); require( ABSPATH . WPINC . '/pluggable.php' ); wp_set_internal_encoding(); wp_functionality_constants( ); $GLOBALS['wp_the_query'] =& new WP_Query(); $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; $GLOBALS['wp_rewrite'] =& new WP_Rewrite(); $GLOBALS['wp'] =& new WP(); $GLOBALS['wp']->init(); wp();And like this on wp-config.php
if ( defined('TABLE_PREFIX') ) $GLOBALS['table_prefix'] = TABLE_PREFIX; else $GLOBALS['table_prefix'] = 'wp_'; if ( !defined('WP_ALLOW_MULTISITE') ) { define('WP_ALLOW_MULTISITE', true); define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'budi.net' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 ); define( 'SUNRISE', 'on' ); }