Fatal error: Uncaught Error: Call to undefined function filter_block_content() in /home/dailymore/public_html/wp-includes/formatting.php:5226 Stack trace: #0 /home/dailymore/public_html/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes(‘Function is_emb…’, Array, Array) #1 /home/dailymore/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Function is_emb…’, Array) #2 /home/dailymore/public_html/wp-includes/kses.php(946): apply_filters(‘pre_kses’, ‘Function is_emb…’, Array, Array) #3 /home/dailymore/public_html/wp-includes/kses.php(754): wp_kses_hook(‘Function is_emb…’, Array, Array) #4 /home/dailymore/public_html/wp-includes/functions.php(6028): wp_kses(‘Function is_emb…’, Array, Array) #5 /home/dailymore/public_html/wp-includes/functions.php(5975): wp_trigger_error(”, ‘Function is_emb…’) #6 /home/dailymore/public_html/wp-includes/query.php(882): _doing_it_wrong(‘is_embed’, ‘Function is_emb…’, ‘(This message w…’) #7 /home/dailymore/public_html/wp-includes/robots-template.php(93): is_embed() #8 /home/dailymore/public_html/wp-includes/class-wp-hook.php(324): wp_robots_noindex_embeds(Array) #9 /home/dailymore/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #10 /home/dailymore/public_html/wp-includes/robots-template.php(32): apply_filters(‘wp_robots’, Array) #11 /home/dailymore/public_html/wp-includes/functions.php(3841): wp_robots() #12 /home/dailymore/public_html/wp-includes/functions.php(3763): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array) #13 /home/dailymore/public_html/wp-includes/class-wp-fatal-error-handler.php(239): wp_die(Object(WP_Error), ”, Array) #14 /home/dailymore/public_html/wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #15 /home/dailymore/public_html/wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template(Array, false) #16 [internal function]: WP_Fatal_Error_Handler->handle() #17 {main} thrown in /home/dailymore/public_html/wp-includes/formatting.php on line 5226
]]>I would like to have an icon at left on the screen, where I have a Map icon, that link to a page or scene with a map, to get an overview. just like the navigation an control are showed in the view, so the user don’t have to look around for my marker in the scene, to find the map icon. :-).
Demo: https://hederytmer.unoweb.dk
At the moment, I am using this Crazy image for “navigation, here the google maps icon are directing to: https://hederytmer.unoweb.dk/pladskort/
]]>In my controller I pull in the custom taxonomy “Boligtype” with get_the_terms() in my return script.
I can’t figure out why this is not working proberly.
Hope someone can help
]]>I installed this plugin and it looks cool and working fine.
one thing that I notice that the share button is showing regardless the user is logged in or logged out (usaully call visitor).
is there a way to control to show and not to show the button depending on the user status?
I checked the settings here and there but couldn’t find anything like that.
Please advise.
Thank you
]]>Thank you.
A
On April 4, AWS announced via a Developer Forum post, that CloudFront will deprecate the oldest versions of the CloudFront API, specifically those dated prior to 2016, on Thursday, June 6, 2019. As CloudFront has evolved, new features and concepts (such as origin groups and support for SNI certificates) have been introduced that can’t be represented in the older APIs. To improve overall support and consistency for CloudFront developers we’re reducing the number of API versions we need to maintain.
Beginning on June 6, 2019 the listed versions of the CloudFront APIs will stop working and will instead return a “410: Gone” response code. To prevent disruption to any calling applications, we recommend that you upgrade applications that invoke these APIs as quickly as possible. If you have questions about this notice, please contact AWS Support.
]]>Example : https://jenyar.com/wp-json/wp/v2/songs
field example “artist_en”
thanks
]]>class JSON_API_Timeline_Controller {
public function category_posts() {
global $json_api;
$json = array();
// get attributes
$category_id = $json_api->query->category_id;
$post_type = $json_api->query->post_type;
$amount = $json_api->query->amount;
$main_post_id = $json_api->query->main_post_id;
if(!$post_type) $post_type = 'post';
if(!$amount) $amount = -1;
$posts = get_posts(array('post_type' => $post_type, 'numberposts' => $amount, 'category' => $category_id, 'orderby' => $eventdate, 'order' => 'DESC'));
if($main_post_id) $main_post = get_post($main_post_id);
else {
$main_post = $posts[0];
unset($posts[0]);
}
if($main_post) {
// setting first (main) post
$json['timeline'] = array();
$json['timeline']['headline'] = $main_post->post_title;
$json['timeline']['type'] = 'default';
$json['timeline']['startDate'] = date('Y,m,d', strtotime($main_post->post_date));
$json['timeline']['text'] = $main_post->post_excerpt;
$json['timeline']['events'] = array();
// example of media asset using the post thumbnail
if(has_post_thumbnail($main_post->ID)) {
$thumbnail_id = get_post_thumbnail_id($main_post->ID);
$thumbnail_src = wp_get_attachment_image_src($thumbnail_id, 'large');
$json['timeline']['events']['media'] = $thumbnail_src[0];
}
if($posts) {
//$json['timeline']['events']['date'] = array();
$json['timeline']['events'][$i]['text'] = array();
$i = 0;
foreach($posts as $post) {
$json['timeline']['events'][$i]['startDate'] = date_i18n('Y,m,d', strtotime(get_post_meta($post->ID, "_datepicker", true)));
$json['timeline']['events'][$i]['endDate'] = date_i18n('Y,m,d', strtotime(get_post_meta($post->ID, "_datepicker", true)));
if ( has_post_format( 'aside',$post->ID ) ) {
$json['timeline']['events'][$i]['text']['headline'] = $post->post_title;
$json['timeline']['events'][$i]['text']['text'] = '<span class="timelinelieu">'.get_post_meta($post->ID, "event_lieu", true).'</span>'.$post->post_content;
} else {
$json['timeline']['events'][$i]['text']['headline'] = '<a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a>';
$typelist = '';
if ($eventtypes = get_field("type_de_event", $post->ID)) {
if(is_array($eventtypes)) {
foreach ($eventtypes as $key => $eventtype) {
$typelist .= $eventtype . ' | ';
}
$typelist = substr($typelist, 0, -2);
$typelist = '<br><span class="timelinetype">'.$typelist.'</span>';
}
}
$json['timeline']['events'][$i]['text']['text'] = '<span class="timelinelieu">'.get_post_meta($post->ID, "event_lieu", true).'</span>'.$post->post_excerpt.$typelist;
// example of media asset using the post thumbnail
if(has_post_thumbnail($post->ID)) {
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_src = wp_get_attachment_image_src($thumbnail_id, 'large');
$json['timeline']['events'][$i]['media']['url'] = $thumbnail_src[0];}
}
$i++;
}
return $json;
} else return 'Posts not found';
} else return 'Main post not found';
}
}
to get a file that could populate a timeline. I need something like this :
{
“title”: {
“media”: {
“url”: “//www.flickr.com/photos/tm_10001/2310475988/”,
“caption”: “Whitney Houston performing on her My Love is Your Love Tour in Hamburg.”,
“credit”: “flickr/tm_10001”
},
“text”: {
“headline”: “Whitney Houston<br/> 1963 – 2012”,
“text”: “<p>Houston’s voice caught the imagination of the world propelling her to superstardom at an early age becoming one of the most awarded performers of our time. This is a look into the amazing heights she achieved and her personal struggles with substance abuse and a tumultuous marriage.</p>”
}
},
“events”: [
{
“media”: {
“url”: “{{ static_url }}/img/examples/houston/family.jpg”,
“caption”: “Houston’s mother and Gospel singer, Cissy Houston (left) and cousin Dionne Warwick.”,
“credit”: “Cissy Houston photo:Tom Marcello<br/>Dionne Warwick: CBS Television via Wikimedia Commons”
},
“start_date”: {
“month”: “8”,
“day”: “9”,
“year”: “1963”
},
“text”: {
“headline”: “A Musical Heritage”,
“text”: “<p>Born in New Jersey on August 9th, 1963, Houston grew up surrounded by the music business. Her mother is gospel singer Cissy Houston and her cousins are Dee Dee and Dionne Warwick.</p>”
}
},
{
“media”: {
“url”: “https://youtu.be/fSrO91XO1Ck”,
“caption”: “”,
“credit”: “Unidisc Music”
},
“start_date”: {
“year”: “1978”
},
“text”: {
“headline”: “First Recording”,
“text”: “At the age of 15 Houston was featured on Michael Zager’s song, Life’s a Party.”
}
},
for now it looks more like this :
<!– <script> –>
]]>
<!–
// jQuery(document).ready(function(){
// jQuery(“#page”).fitVids();
// });
–>
<!– </script> –>
{
“status”:”ok”,
“timeline”:{
“headline”:”Cie Les Gens De…”,
“type”:”default”,
“startDate”:”2017,11,17″,
“text”:”En ayant la volont\u00e9 de pr\u00e9senter une danse ouverte sur d\u2019autres …”,
“events”:{
“”:{
“text”:[]},
“0”:{
“startDate”:”2018,02,15″,
“endDate”:”2018,02,15″,
“text”:{
“headline”:”G\u00e9rard Diby”,
“text”:”<span class=\”timelinelieu\”>Bures sur Yvette (91)<\/span>Danseur soliste<span class=\”timelinetype\”>CO2NEXIONS <\/span>”},
“media”:{“url”:”http:\/\/conexion.cluster003.ovh.net\/blog\/wp-content\/uploads\/medias\/2017\/11\/gerard.jpg”}},
“1”:{
“startDate”:”2018,02,15″,
“endDate”:”2018,02,15″,
“text”:{
“headline”:”Ludovic Ilolo aka Ucka D\u00e9lia<\/a>”,
“text”:”<span class=\”timelinelieu\”>Bures sur Yvette (91)<\/span>Com\u00e9dien, Danseur, Chanteur, Chor\u00e9graphe, R\u00e9petiteur… Cie Les Gens De…<br><span class=\”timelinetype\”>CO2NEXIONS <\/span>”},
“media”:{“url”:”http:\/\/conexion.cluster003.ovh.net\/blog\/wp-content\/uploads\/medias\/2017\/11\/image003.jpg”}},
“2”:{
…