Do you have a overview of the shortcode? I only found
[learn_press_profile]
[learn_press_become_teacher_form]
Thanks
Do you have a overview of the shortcode? I only found
[learn_press_profile]
[learn_press_become_teacher_form]
Thanks
Hi kleijheeg,
LearnPress just provided 2 shortcodes like you said.
[learn_press_profile] displays LearnPress profile and [learn_press_become_teacher_form] displays form instructor registration, for custom page.
Other templates stored in sub-directory templates which can be overriding by a theme.
Thanks for your concern.
Ken
@namgostar sorry about that. I should have mentioned @wp.insider method as well. I will remember for next time when someone ask a similar question.
Kind regards
Hi Barry,
On one test page I only have two lines. Only the first item ever seems to show (even if I switch which one is first):
[event_embed event="1881"]
[event_embed event="1882"]
I have another real page that is more complex that has an Enfold accordion component with probably ~20 items. Event Rocket codes are in some toggles, while others have just text. None of this information seems to show up.
Some of the event toggles are:
[event_embed event="joseph-sight-sound-theatre-lancaster-pa"]
[event_embed event="1880"]
[event_embed event="1844"]
The toggles with event shortcodes only have those codes in them.
When I disable Enfold, the complex homepage won't load properly (since it is all built with their custom editor components), but the simple page with just those two lines still will only display one event. I sometimes even have trouble getting it to display one (it seems a little sporadic depending on which event I choose and whether I use the ID or slug name).
If there is a private way to contact you I'd be happy to give you the password to check out our site so you can see it in person.
Thanks for your continued support troubleshooting this,
- Dan
On one test page I only have two lines. Only the first item ever seems to show (even if I switch which one is first):
Thanks! You're right, this is a legitimate bug and I'll get a fix out shortly.
I’m trying to work my way through some Wordpress tutorials / exorcises (Using nonces) and I keep getting this PHP error. It’s telling me I have a call to undefined function add_shortcode () on line 32.
I’ve been digging for about a day now and can’t find what might be the problem. I’ve looked into stuff specifically on shortcodes and how to build and use them. That doesn’t suggest anything. I’ve looked and looked for any type-Os, missing () or curly braces etc.
I’m just not seeing it.
Here’s the code…
<?php
/*
* plugin name: my_nonce
* plugin URI: http://ronc.me
* discription: A sample of the "wp_nonce-field ()" function
* Author: ronc
* Author URI:http://ronc.me
*/
function my_nonce_form() {
ob_start()
?>
<form method="post" >
<p>
<input type="hidden" name="my_nonce_field" value="<?php echo wp_create_nonce('my-nonce-field'); ?>" />
<input type="submit" value="Submit" />
</p>
</form>
<?php
return ob_get_clean ();
}
add_shortcode('nonce_form', 'my_nonce_form');
function process_my_nonce_field() {
if(isset($_post[my_nonce_form])){
if (wp_verify_nonce ($_post [my_nonce_form])) {
}
}
}
add_action ('init', 'my_nonce_form_data');
?>
Is there something else that I’m missing or maybe some special nuance that I’m just not aware of ??
From the codex https://codex.wordpress.org/Function_Reference/add_shortcode
Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. This is similar to the way filter functions should behave, in that they should not produce expected side effects from the call, since you cannot control when and where they are called from.
Sounds like you may be experiencing those "unexpected results", it may be trying to call add_shortcode()
before the proper core files are loaded and it is actually defined as a function.
Unfortunately, it doesn't seem to work for me!
...clicking on the date links doesn't display any photos at present.
It's not quite ready to go out - I need to make further adjustments in relation to recurring events and some other things - but you can access a dev copy of what will become 3.2 here.
He is right in saying that the better option is to configure the payment button in the plugin.
The hosted PayPal button option is there for people that needs it but it has some limitations. The plugin can't dynamically add values to it at the time of transaction. So some advanced integration options won't work unless you configure the payment button inside the plugin.
can't dynamically add values to it at the time of transaction.
Can you please give me an example of this? I'm not sure what it means. So sorry for my lack of knowledge. :-(
Should work now.
Still can't get it working on the link above.
Installed new version and applied settings.
Tried implementing it on my site:
http://www.globexposure.net/wales/?page_id=2182
..but that doesn't work either.
Is the shortcode correct:
[wppa type="calendar" calendar="exifdtm" all="1"][/wppa]
For example, the button that the plugin creates can add extra info in the custom field dynamically when someone want to use an affiliate tracking system with the membership plugin. A hosted button can't do that.
You don't have to worry about it though since you are not using that kind of advanced integration.
Ok. Thank you so much for your explanation, and for your patience overall.
:-)
I have written some shortcode to be able to place the latest post excerpt anywhere on the page, but I got a problem that I have trying to solve for days now! And I can't find the reason why the get_the_excerpt() removes all p tags around text in other parts of the page. When I remove get_the_excerpt() from the code, it's no problem with the other text inside other shortcodes, but when I put i back, the problem is back! Please have a look at the code and tell me what I have done wrong or could improve! Thanks!
function show_posts() {
global $post;
$html = "";
$extra_css = "";
$latestPosts = new WP_Query('cat=5&posts_per_page=1');
if($latestPosts->have_posts()): while($latestPosts->have_posts()): $latestPosts->the_post();
if (has_post_thumbnail()) {
$extra_css = "has-thumbnail";
}
$html = "<div class='wide'><article class='post {$extra_css}'>";
$html .= "<div class='post-thumbnail'>";
$html .= "" . get_the_post_thumbnail(null,'thumbnail') . "";
$html .= "<div class='post-thumbnail-date'><h4>" . get_the_time('Y-m-d') . " </h4></div>";
$html .= "</div><!-- end post-thumbnail -->";
$html .= "<h3>" . get_the_title() . "</h3>";
$html .= "<p class='post-info'>" . get_the_time('Y-m-d') . " | Av " . get_the_author() . "</p>";
$html .= "<p class='post-text'>" . get_the_excerpt() . "</p><p> Läs mer...</p>";
$html .= "</article></div>";
endwhile;
else:
// Error message
endif;
wp_reset_postdata();
return $html;
}
add_shortcode('blogg','show_posts');
Should work in 6.2.3, please try. You shortcode looks ok.
Hi,
thank you for this amazing plugin. Is there a way to add the shortcode in a widget sidebar?
Jacob that is working splendidly!
I removed the "" from the shortcode to make it work:
[wppa type=calendar calendar=exifdtm all=1][/wppa]
How can i paginate it and make it display in reverse date order (newest first)?
Maybe you copy/pasted the shortcode that contained texturized quotes. That fails always.
Reverse order is not implemented yet, i will look at it.
Pagination is also not supported, i recommend the following:
( Use the Text editor, NOT the visual!! )
<div style="max-height:400px; overflow:auto" >
[wppa type="calendar" calendar="exifdtm" all="1"][/wppa]
</div>