benjibuls
Forum Replies Created
-
OK, so good and bad news…
Good news
The plugin doesn’t cause a fatal error when activating now.Bad news
It doesn’t work properly as none of the settings changed within an OptionTree based theme stick. Nothing gets saved.Any help would be greatly appreciated, or I may have to discontinue using OptionTree all together, sigh.
Have discovered the issue, the plugin is using an old method to define the plugin directory and url global vars. In the plugin index on line 18 & 19 change the following:
Replace:
define( 'OT_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) ); define( 'OT_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
With:
define( 'OT_PLUGIN_URL', plugins_url( '', __FILE__ ) ); define( 'OT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
And then the plugin behaves. I guess wordpress have finally deprecated the old methods.
Hi Derek,
I’m having the same error above on a fresh copy of WordPress 3.3.1
I’ve tried re-installing a fresh copy after deleting the plugin from both the “Install Plugins” tool inside wordpress and manually downloading the ZIP from www.ads-software.com, neither worked. Any ideas why this would be?Hi John, yeah have been doing some thorough testing in 3.1 and the plugin seems to re-write the first (first created in functions) custom post type and all it’s posts correctly, but all the subsequent custom post types fail.
It’s not a spectacular fail, just a little one. If I nut it out I’ll post back up here. If you get there first let us know.
Cheers Benj
Forum: Fixing WordPress
In reply to: Running custom queries is admin meta boxesI came across the same issue. It’s pretty easy to resolve though. Rather than using WP_Query you can just make a call with get_posts() and directly play with the array data rather than relying on the loop helpers. This gets around the query issues.
I’ve now got a couple of meta boxes that list particular groups of posts or custom post types. And wordpress is now even more fantastic!
Forum: Plugins
In reply to: Query Posts by TaxonomyOh forgot to put this in just in case. An example of using this with a loop:
$args = array( 'post_status' => 'publish', 'taxonomy_name' => 'show-in', 'taxonomy_term' => 'al-pacino, robert-de-niro' ); $custom_posts = get_posts_by_taxonomy($args); <?php if ($custom_posts): ?> <?php foreach ($custom_posts as $post): ?> <?php setup_postdata($post); ?> <?php the_title(); ?><br /> <?php the_content(); ?> <?php endforeach; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?>
Forum: Plugins
In reply to: Query Posts by Taxonomy