Ok, thank you.
https://playernotes.pl/pobieralnia/
– try checking here, just type anything in search box.
Check my first post, there’s link attached to page where problem occurs.
It’s Directory Add-on issue, not WPDM plugin overally.
Thank you very much! This should be added to template editor legend at right column.
So, with the little help from my friend i managed to create small plugin for additional shortcode, that manages repeater from original Advanced Custom Fields plugin:
add_filter('wdm_before_fetch_template','my_fetch_template',10,1);
function my_fetch_template($vars){
global $post;
$post_id = $post->id;
$some_repeater = get_field('sourcepage', $post_id);
if ($some_repeater && is_array($some_repeater)) {
foreach ($some_repeater as $item) {
$output .= '<span class="set blue">
<a class="btn-pbt pri ico" href="'.$item['linkbutton'].'">'.$item['textbutton'].'</a>
</span>';
}
}
$vars['sht_pg'] = $output;
return $vars;
}
– this is actually kind of example i asked for(i mean i can create output by myself, but i had to know where to start with the functions and callback).
Maybe someone in future will find it helpful.
Could you provide email address for customization enquiry?
Ok, thanks for the answer.
So basically, there is no other, “easier” way to pass php code into template file?
Ok, just ignore my last post and answer me this, why after using example code:
add_filter('wdm_before_fetch_template','my_fetch_template',10,1);
function my_fetch_template($vars){
//your code here
$vars['tag-name'] = "tag value";
$vars['new_tag'] = callback_function();
return $vars;
}
i’m getting call to undefined function error?
It should return “tag value” in the front end when using [tag-name] shortcode, but instead i’m getting this error on all WPDM pages.
I’m using latest version of WPDM Pro.
Thanks, but i have another question regarding that hook – i’m trying to merge:
<?php if( have_rows('source_page') ): ?>
<?php while( have_rows('source_page') ): the_row();
$buttname = get_sub_field('button_name');
$buttlink = get_sub_field('button_link');
?>
<span class="set blue"><a class="btn-pbt pri ico" href="<?php echo $buttlink; ?>"><?php echo $buttname; ?></a></span>
<?php endwhile; ?>
<?php endif; ?>
with the provided hook(code) and i’m getting error call to undefined function
Can you provide some kind of example with actually used function in that hook?
btw. is there some particular reason for disabling php in page/link templates?
So i should simply wait for 2.8.7 update, is that correct?
3.0.0
Ok, thank you. Was it some kind of internal plugin issue?
Have you tried disabling bootstrap css/js in WPDM options? It tends to mess up some themes.
I understand. But I still will be able to use code you provided in future versions?
Thank you. That’s what i wanted.
In future version should I still use that code, or should i expect “revised” version of that code?
Ok, thank you for response and I’m waiting.
I’m still waiting for response – it’s really important matter to me.
Yes, i found those as well – thing is, that they are not working. Please read my post carefully.
http://playernotes.pl/dema-gier/
+ translated files in attachment
Bump. Would appreciate any info on that matter…
also i just looked and there’s still no string for “ASC” main button for WPDM.