zackskeeter
Forum Replies Created
-
Forum: Plugins
In reply to: [Membership 2] View TransactionsI want to show this on the frontend, but only for that user who is logged in. So they can see their transactions and subscriptions.
Is there any way to do this?Thanks a bunch!
Do you have any ideas on how i could also limit a point being added to once a day?
So that if a user does a action it will only reward them once for that action within a day
Thank you for your help!
Forum: Hacks
In reply to: Style comment notification mailerDo you know of any plugins that would let me style the mailers?
Forum: Fixing WordPress
In reply to: Hard Crop Fails on Big Image sizes.Yeah Really, Talk about unhelpful!
Forum: Plugins
In reply to: [WooCommerce] Add to cart confirmation message stopped displayingWas this ever resolved?
Forum: Plugins
In reply to: [WooCommerce] Variable Product SKU DisplayCan anyone Fix the jquery for woocommerce v.2??
I am getting a varation issue where i cannot add to cart due to a jquery issue.
TypeError: t.product_variations is undefined
h || (h = t.product_variations[c]);
The fix worked before the update, Please help. Woocommerce support has been little use
Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesWorked like a charm! Thank you!
Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesThanks, I was calling the files in the wrong order. Silly mistake. It all is working now and i have only one final question
This may be really simple but i seem to be stuck on it.
How do i use these meta box fields? When its in option tree i use the get_option_tree(“theid”);
but is there anything i need to do for it to work here? for example if i had a field which gave the option of adding extra text to a place. What code would i use to echo it out?
I have tried get_field() get_option() _custom_meta_boxes() and of course get_option_tree()
Thanks so much for all your help thus far
Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesThanks 🙂 that made it show up on in the right place. But i am getting this :
Cannot modify header information – headers already sent by (output started at /home/zackusa/public_html/responsiveweb.co.za/wp-content/themes/grunge-portfolio/includes/new-meta-boxes.php:2) in /home/zackusa/public_html/responsiveweb.co.za/wp-includes/pluggable.php on line 876
Using the following code
<?php /** * Initialize the meta boxes before anything else. */ add_action( 'admin_init', '_custom_meta_boxes' ); /** * Builds the Meta Boxes. */ function _custom_meta_boxes() { $meta_args_array = array( array( 'id' => 'page_settings', 'title' => 'Page Settings', 'pages' => array( 'page' ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'label' => 'Portfolio Type', 'id' => 'portfolio_type', 'type' => 'radio', 'desc' => 'What type of portfolio item is this?', 'choices' => array( array( 'label' => 'Standard', 'value' => 'standard' ), array( 'label' => 'Image', 'value' => 'image' ), array( 'label' => 'Gallery', 'value' => 'gallery' ), array( 'label' => 'Video', 'value' => 'video' ) ), 'std' => 'standard' ) ) ), array( 'id' => 'portfolio_settings', 'title' => 'Porftolio Settings', 'pages' => array('portfolio', 'portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'label' => 'Video Embed Code', 'id' => 'portfolio_video', 'type' => 'textarea-simple', 'desc' => 'Video Embed Code. The width and height should be: 950px * 385px', 'std' => '', 'rows' => '5' ) ) ) ); /* load each metabox */ foreach( $meta_args_array as $meta_args ) { ot_register_meta_box( $meta_args ); } }Any suggestions?
Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeSuccess!
Thank you so much for sticking with me on this. Working 100%
Just a note, you should consider putting that function in the documentation, im sure im not the first who has wanted to use OT for something like this
Thanks Again, Ps the code you send me earlier that is to be included in the next update for selecting the image size is working.
Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeOh wow im glad to be in luck 😀
Where would you recommend I place this code?Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeYes,
That way the all the user needs to do is upload a image and the code specifies what version to show,For instance, the user uploads a 1000px by 1000px image, they are not very computer literate so i don’t want to rely on them to select the size.
Anyway he uploads the image and i want it to show up in a 300px block.
Normally i use something like this
$image =wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘thumbnail’ ); ?> //300px x 300px
or
<?php $image = get_sub_field(‘image’); $image = $image[‘sizes’][‘thumbnail’]; ?> //300px x 300px
Now no matter what, i get the correct image size in the block.
Yes i could use css and just re-size it but a large image uploaded will require more bandwidth.Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeOhh okay, i see so they select it through the frontend.
I was talking about the method where you can force a specific size to be shown.
For example, with a featured image you can use something like this $image =wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘mysize’ ); ?>Example from Advanced Custom Fields:
<?php $image = get_sub_field(‘image’); $image = $image[‘sizes’][‘slider’]; ?>Now no matter what the select on the frontend it will always choose the size i want them to. The reason, so that i can make sure that the image fits without any chance of human error.
Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeHey
Maybe i am doing something wrong
I replaced the code with the updated one from github.
I uploaded a new image to the slider (using option tree for backend)
Then i run a print_r($slide); in order to see available options of what i can query from the array. Here is what i get,
Normally i will see a size option here and would echo it with somthing like $slide[image][mysize]Array ( [0] => Array ( [title] => the
new york [image] => http://responsiveweb.co.za/wp-content/uploads/2012/10/photo_22741_20121106.jpg [link] => # [description] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur facilisis nibh vel mauris mattis vestibulum. Quisque non magna at urna pretium interdum eget… ) )What would i be doing wrong?
Forum: Plugins
In reply to: [OptionTree] WordPress image resizing in option treeDid you make the fix yourself?
Ill integrate it tonight and will let you know.
Thanks again