volodika
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_term_children return wrong ID’sUnfortunatelly this code not helped
Here dump of array of child category. Looks strange that id’s is equal to keys
array(5) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) } int(27) string(11) "product_cat"Forum: Fixing WordPress
In reply to: Redirect After Login ProblemThis code not helped. User redirected to their profile
Forum: Plugins
In reply to: [Google Photos Gallery with Shortcodes] Can not connect to Google accountCan someone to help me ?
Hello,
I have some problem ‘Sorry there has been a problem with your feed.’
WordPress Version 5.1.1
Google Photos & Picasa Viewer Version 3.1.1 by Cheshire Web SolutionsOn this page I use shortcode
[cws_gpp_albums theme=’grid’ results_page=’foto-details’ show_title=1 show_details=1 num_results=6 hide_albums=’Auto Backup,Profile Photos,Naamloos’]
[cws_gpp_images_in_album]
Can you help me ?
I verified and there no orphaned entries. Maybe I can grant to you access to admin and FTP and will see by yourself what can do ?
I restored galleries.
But in this case when I trying to add gallery fromadmin I got error
Uncaught TypeError: Cannot read property 'register_child' of undefined
And on frontend I see only shortcode text. I updated to last plugin version and disabled all plugins, but not helped.
I see empty window when trying to add gallery http://prntscr.com/mqwtcoI deleted plugin to re install it. All my galeries dissapeared. How it possible ?
Can I restore them from DB ?Plugin details
http://prntscr.com/mo3tq5
http://prntscr.com/mo3ufjI don’t have this option ‘Galery’ because can’t activate plugin.
I got info from Health Check plugin:
Server architecture Linux 4.4.134+20180824.0648.fc9acc4c.xenial x86_64
Web Server Software Apache
PHP Version 7.2.15 (Supports 64bit values)
PHP SAPI cgi-fcgi
PHP max input variables 5000
PHP time limit 50
PHP memory limit 536870912
Max input time 60
Upload max filesize 96M
PHP post max size 96M
cURL Version 7.58.0 OpenSSL/1.1.0g
SUHOSIN installed No
Is the Imagick library available No
htaccess rules Your htaccess file only contains core WordPress featuresI disabled all plugins, switched the theme, checked requirements but not error persist. Can you help ?
I rollback version of plugin to v 3. Last version not working
Maybe this issue related to AJAX requests ? Do you have any idea
function ajax_filter_get_posts( $id ) { // Verify nonce if( !isset( $_POST['afp_nonce'] ) || !wp_verify_nonce( $_POST['afp_nonce'], 'afp_nonce' ) ) die('Permission denied'); $id = $_POST['id']; $ptype= get_post_type( $id ); $args = array( 'p' =>$id,'post_type'=>$ptype ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?> <div id="horizontalTab"> <ul class="resp-tabs-list"> <li>Gallery</li> <li>Appartementen</li> <li>Extra informatie</li> <?php if(simple_fields_value("restaurantslug") != '') { ?> <li>Restaurant</li> <?php } ?> <?php if(simple_fields_value("welnessslug") != '') { ?> <li>Activiteiten</li> <?php } ?> </ul> <div class="resp-tabs-container" > <div> <?php $repeatable_field_values = simple_fields_value("text"); echo do_shortcode($repeatable_field_values);?> </div> <div> <?php $repeatable_field_values2 = simple_fields_values("titela,imagea,texta,booking_systeema,booking,slidera"); foreach ($repeatable_field_values2 as $values2) { $customtxt = $values2["texta"]; echo ' <div class="featured_item"> <div class="image"> <img src="'.$values2["imagea"]["url"].'"> </div> <div class="description"> '.do_shortcode($values2["slidera"]).' </div> <div class="test"><p class="h3">'.$values2["titela"].'</p>'.$customtxt.'<a class="btn-res" href="/reserveren?huis='.$values2["titela"].'">Direct boeken</a></div></div>'.do_shortcode($values2["booking"]); } ?> </div> <div><?php echo apply_filters("the_content", simple_fields_value("eiinhoud")); ?></div> <?php if(simple_fields_value("restaurantslug") != '') { ?> <div><?php echo apply_filters("the_content", simple_fields_value("restaurantslug")); ?></div> <?php } ?> <?php if(simple_fields_value("welnessslug") != '') { ?> <div><?php echo apply_filters("the_content", simple_fields_value("welnessslug")); ?></div> <?php } ?> </div> </div> <?php endwhile; ?> <?php else: ?> <h2>No posts found</h2> <?php endif; die(); } add_action('wp_ajax_filter_posts', 'ajax_filter_get_posts'); add_action('wp_ajax_nopriv_filter_posts', 'ajax_filter_get_posts');this code from functions.php where used do_shortcode
jQuery(document).ready(function($) { if($('body').hasClass('single-post')||$('body').hasClass('single-huizen-te-koop')){ var post_id = $('.targetID').attr('id') $('#tabs').html( 'Loading....' ); data = { action: 'filter_posts', // function to execute dataType: 'html', afp_nonce: afp_vars.afp_nonce, // wp_nonce id: post_id, }; $.post( afp_vars.afp_ajax_url, data, function(response) { if( response ) { // Display posts on page console.log(response); $('#tabs').html( $.parseHTML(response) ); tabs(); }else{ $('#tabs').html( 'Error....' );} }); } });and main.js here ajax requests
It uses last version 1.5.7 http://prntscr.com/lg8pkm
https://www.casaverina.nl/agriturismo-gianpiero/#horizontalTab1https://www.casaverina.nl/casa_laura/#horizontalTab2
Sorry, but issue not resolved yet.