Tag Info

Hot answers tagged

4

Okay, I solved it (again, cause this happened before but I forgot the solution!).... This was for a custom post type and I hadn't added a support that involved uploading something. So, I added "thumbnail" to the list of supports... 'supports' => array('title','author','thumbnail') for my custom post and that did the trick! It's a weird little glitch. ...


3

So, every time you save a post, you want to replace the value of a title that just got saved with another value from a custom field... Seems like you should just put whatever you what the title to be in the actual title field. BUT I'm assuming this is for presentational purposes: you want that custom post type to display a different title on the front end ...


2

Do you have any output code we can reference? Put this in your Theme file: <img src="<?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>'; ...


2

I ran into the same issue when making use of the new wp_editor function on an alchemy powered metabox. I did some searching and turned up a solution that makes use of "html_entity_decode". Take a look at the reference here: https://gist.github.com/1838037


2

Been there done that. Try this: http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ Its a search and replace tool that you put in your WordPress root and just run it from mydomain.dev/searchreplacedb2.php It fixes the serialization problem when you want to change the url:s to the live one.


1

After more searching I decided to try one of the alternative methods listed in the checkbox-meta.php example file. I used a "foreach" loop instead of the "while" loop and the checkbox state is now loading properly. Here's the updated code: <?php foreach ($items as $i => $item): ?> <?php $mb->the_field('t_enabled_widgets', ...


1

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; ...


1

Ok, I sorted this out myself. Instead of get_posts or WP_Query I used a custom select query as explained here My revised code: <select name="<?php $mb->the_name(); ?>"> <?php global $wpdb; $selected = ' selected="selected"'; $querystr = " SELECT $wpdb->posts.post_title, $wpdb->posts.ID FROM ...


1

When I've used WPAlchemy, the instructions have me put the WPAlchemy directory directly into the wp-content folder - not the theme folder. It looks like your include code points to your theme directory. All the other stuff in the path is specific to your host, and probably not part of the problem.



Only top voted, non community-wiki answers of a minimum length are eligible