WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]

I managed to solve it. The problem was in using a custom post-type with Metabox.php / MediaAccess.php (both from WPAlchemy class) Supposedly you can use custom post-types with WPAlchemy since, when instantiating a WPAlchemy_MetaBox object you can pass some optional parameters to enable that kind of costumization. Like this: $mb = $my_custom_metabox = new WPAlchemy_MetaBox(array … Read more

How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?

Andrew, In the case where your custom post type exists on only one sub-site of your Multi Site installation, you can in your template file in which controls the display and output of your custom post type work with simple conditional functions such as; is_singular(‘post_type_name’); is_user_logged_in(); …and in-fact it might well be as simple as; … Read more

wp alchemy multiple image uploader output images to template

Do you have any output code we can reference? Put this in your Theme file: <img src=”https://wordpress.stackexchange.com/questions/45576/<?php get_the_value(“imgurl’); ?>” style=”width:100px;height:100px” /> if you have multiple you’ll have to go through a foreach loop: <?php foreach ($meta[‘imgurl’] as $img ) { echo ‘<a href=”#” /><img src=”‘. $img .'” /></a>’; } ?> Hope this helps, I don’t … Read more

WpAlchemy – _global_head is being output 3 times [closed]

The clue was in the original script here – line 460 of MetaBox.php has the comment “// todo: when first run define a constant to prevent other instances from running again …”. The code below fixed this issue. if(!defined(‘HEAD_CALLED’)): add_action( ‘admin_head’, array( $this, ‘_global_head’ ) ); define(‘HEAD_CALLED’, true); endif;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)