clickmac
Forum Replies Created
-
Forum: Hacks
In reply to: Call Custom Field inside shortcode or php within the template<?php
function somthing() {
$priceinbutton = get_field(‘price’);
$iteminbutton = get_field(‘title’);echo print_wp_cart_button_for_product(”.$iteminbutton.”, ”.$priceinbutton.” );
}
?>it is not double quotes, but two single quotes then a dot
or try this
<?php
function somthing() {
$priceinbutton = get_field(‘price’);
$iteminbutton = get_field(‘title’);echo print_wp_cart_button_for_product(”.$iteminbutton.”, $priceinbutton );
}
?>or this
<?php
function somthing() {
$priceinbutton = get_field(‘price’);
$iteminbutton = get_field(‘title’);echo print_wp_cart_button_for_product($iteminbutton, $priceinbutton );
}
?>Forum: Hacks
In reply to: Create/Edit user without Email Adressenice! thanks
Forum: Hacks
In reply to: Call Custom Field inside shortcode or php within the templatelets see if this can help.
First of all, you do not use “echo” like that.
I’ll give you an example:function output_pork() {
echo ‘<h2>pork</h2>
another pork’;
}this function outputs pork on one line then “another pork” on the next.
Forum: Hacks
In reply to: calling shortcode in my jquerytest the shortcode on a post, and make sure the slug-name is really working..also
leave the # just how i have it, in the above reply
Forum: Hacks
In reply to: calling shortcode in my jqueryi used jQuery, because $ might conflict with a plugin or theme later on. So jQuery is WordPress safety….
And are you sure that you are using the double quotes and single quotes with it like so:
“‘.do_shortcode(‘[shortname]’).'”
one double quote, one single quote then .do_shortcode(‘[shortname]’). and one single quote then one double quote….
??
try this..
function hoverall_footer() { echo '<script type="text/javascript"> $(window).load(function () { $(\'.kimberlee-aubrey\').HoverAlls({tooltip:true,starts:"-100px,-20px",ends:"-100px,5px",returns:"-100px,-20px",bg_class:"tooltip4background",speed_in:1000,speed_out:380,effect_in:"easeOutBack",effect_out:"easeInSine",bg_width:"450px",bg_height:"auto",html_mode:"#'.do_shortcode('[shortname]').'"}); });</script>'; } add_action ('wp_footer','hoverall_footer');Forum: Hacks
In reply to: calling shortcode in my jqueryim no coding genius but hers a try
<script type="text/javascript"> jQuery(document).ready(function() { jQuery(window).load(function () { jQuery('#comp1').HoverAlls({tooltip:true,starts:"-100px,-20px",ends:"-100px,5px",returns:"-100px,-20px",bg_class:"tooltip4background",speed_in:1000,speed_out:380,effect_in:"easeOutBack",effect_out:"easeInSine",bg_width:"400px",bg_height:"325px",html_mode:"'.do_shortcode('[shortname]').'"}); }); </script>i included
'.do_shortcode('[shortname]').'………….and look over your code, make sure it ends properly,
jquery is better to use, so it won’t conflict with anything..http://codex.ww.wp.xz.cn/Shortcode
http://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers@absoluteweb have you figured out how to change the “_naissance”
in
_naissance: 31/01/1970
? if so, please do share.
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] automatic conversion of html chractersthe html character for ” => ” is not being accepted when i post
Forum: Hacks
In reply to: Save Changes function after sortedafter clicking “save changes”
it returns to its precious state which is1(bb)
2(tom)
3(fred)Forum: Hacks
In reply to: how to fix this format of php?ok thank you for that ….. not quite what i wanted though … but how do i write,
if any field from the array is left empty don’t print that field alone but allow the rest to be printed?
Forum: Hacks
In reply to: how to fix this format of php?example:
if i have three fields1 -> field one
2 -> field two
3 -> field threeso the fields are not pre made, when someone clicks a button, a new field appears, and for each field that appears, it can be used with get_option, what and how to assign to each field so that get_option can be used anywhere to call back any one of those values?
Forum: Hacks
In reply to: how to fix this format of php?Thanks for your reply! This is my solution but i would like to know, how to use add_option in a multi dimentional array?
add_option ('option1', $snt['field1'] ); add_option ('option1', $snt['field2'] ); <?php my_own_field ( 'my_field_name', array( 'field1' => __( ''.get_option( 'option1' ).''), 'field2' => __( ''.get_option( 'option2' ).'') ), $string->get_value( 'my_field_name' )); ?>Forum: Hacks
In reply to: how to fix this format of php?If i use
‘<?php echo esc_attr( $snt[“field1”] ); ?>’)I won’t get the value i want from the database
already hardcore deleted it from my server…
Forum: Plugins
In reply to: [Advanced Random Posts Widget] include "read more" linkok i have solved the escaping http code….
insert this into your plugins css file
word-wrap: break-word;and the read more option should be piece of cake……