vabmedia
Forum Replies Created
-
ok, so unfortunately…I am having this problem and I’ve updated to the latest version of woocommerce and I don’t have the checkout manager installed.
What country field are you talking about? The one under general or the one under standard tax? Help. Thx in advance!
Hey I would love a fix to this as well. Any chance I can get it from ‘thisismyalterego’?
Forum: Fixing WordPress
In reply to: Images being stretchedI’ve run into this issue and fixed it by fixing the functions.php document for that specific thumbnail. The easier way would be to look at what the upload size is under settings-> media. If its a custom theme then it’s most likely having to do with the add_post_thumbnail( ) hook in the page template or functions.php file
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataWell, I’m trying to get the image to show up, period. So I guess I left out the img src code.
Can you please try my code? It’s driving me crazy ??Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataOk I have the following:
function custom_meta_boxes() { $my_meta_box = array( 'id' => 'my_meta_box', 'title' => 'Images on Right Column', 'desc' => '', 'pages' => array( 'page' ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'id' => 'firstimg', 'label' => 'First img', 'desc' => 'Add images here to appear on right column', 'std' => '', 'type' => 'upload', 'class' => 'fimg' ), array( 'label' => 'second Upload', 'id' => 'imgs_sec', 'type' => 'upload', 'desc' => 'Second Right Col Image', 'class' => 'simg' ), array( 'label' => 'Third Upload', 'id' => 'imgs_th', 'type' => 'upload', 'desc' => 'Third Right Col Image', 'class' => 'timg' ), ) ); ot_register_meta_box( $my_meta_box );
and I’m hoping to call back the images I uploaded, so I edited your code and did this:
<?php //images $custom_meta = get_post_custom($post->ID); $background = unserialize($custom_meta['my_meta_box'][0]); $backimg = $background['firstimg']; echo wp_get_attachment_image_src($backimg , "full"); ?>
And I have no luck at getting any images. ??
I’m sort of confused about which variables go where, as you may see in my code aboveForum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataIs that code above mainly for the list-item option type or does it work on others? not in list-items?
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box Dataoh, thank you, would this work for images? or would I need the wp_get_attachment_image_src()? code
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] How to reference list items?How did you output your images? I’m having trouble outputting images from a list item meta box.
Nevermind, I figured it out. I don’t know about anyone else, but it seems I can’t change the function name and still make this work. Like there are little details you have to keep here and there.
I don’t understand the ‘choices’ => array() part of the code. What is that supposed to do? why is it in two places in your code above? And did it work when you used array(‘page’)?
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] don't know how to use meta boxesOk, so after I got the metaboxes to work, I tried pulling my images using Ot_get_option(‘metabox-option-name’) and It echoed back metabox-option-name. I was trying to get the image url from the upload meta box option.
This pulled the urls, but didn’t pull the image:
$attachments = get_children( array(
‘post_parent’ => get_the_ID(),
‘post_type’ => ‘attachment’,
‘numberposts’ => 1, // show all -1
‘post_status’ => ‘inherit’,
‘post_mime_type’ => ‘image’,
‘order’ => ‘ASC’,
‘orderby’ => ‘menu_order ASC’
) );
foreach ( $attachments as $attachment_id => $attachment ) {
echo wp_get_attachment_image( $attachment_id );
}So …now I need to pull each image one by one. How do I do that?
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Background OptionHey Eric W.
I don’t think you have to call the option in the php file.
You set up a custom background option on the options page, and along with it, you have to set up a css option and add the css code to the css box that was created when you created a css option.You also have to create a file called dynamic.css, (call this file from your header.php) so that whatever you write in the css box, will show up on that file dynamically, and that will help you set up your background.
In the css box in your theme options you would have the following:
#homelayout{
{{home_content}}
}where home_content is the id name of the background option I(you) set up.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] don't know how to use meta boxesYes, I figured it out, just using the examples was enough. I also had a custom post type that I was adding meta boxes to, and needed to identify that in page=> “custom-post-type”
If you just had a regular post you would do page=>postI also contacted the developer of the plugin he was really nice and helpful.
What happened though, was for some strange reason, it wasn’t pulling up the meta boxes no matter how many times I went in and revised everything. Finally, what I did was that I changed the actual file name from meta-boxes.php to peru-meta-boxes.php and the meta boxes finally showed up.
Weird, right?
The instructions in the documentation were all right, except for just naming my file the standard “meta-boxes.php” didn’t work, and when I renamed the file, it worked. Go figure – it’s always the simplest thing that you overlook.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] don't know how to use meta boxesHi DeepTitanic,
I saw that the Options Framework People posted a tutorial on their site on how to set up metaboxes: https://wptheming.com/2010/08/custom-metabox-for-post-type/
And I’ve seen similar examples elsewhere also. I’ll be trying it this weekend. Will let you know how it works ??
Forum: Plugins
In reply to: auto-create page upon activation of pluginThanks Borellidesigns!! Appreciate the code! I’ll try it out