• P
    pattn

    Hi guys,
    i'm struggling to open projects on first tap, if it's a smartphone/tablet. If i remember right, you changed this a while ago, so the caption:hover is triggered at first touch, project opens on second.

    Is there an easy way to change this functionality back to the old version?

    posted in General Discussion read more
  • P
    pattn

    Just wanted to share this with you. No clue if it's the easiest way, but works great in my case. @forever1995

    if(get_laygrid()) :
           
    $gridder_json = get_post_meta( 7, '_gridder_json', true );
    $obj = json_decode($gridder_json,true);
    
    $current_id = $post->ID;
    $items = $obj['cont'];
    $total = count($obj['cont']);
    foreach ($items as $item) {
    	if ($item['postid'] == $current_id) {
    		 $current_pos = array_search($item, $items);
    		     if($current_pos > 0) {
                             $prev_id = $items[$current_pos - 1]['postid'];
                             echo '<a rel="prev" href="' .get_permalink($prev_id). '" title="'.get_the_title($prev_id). '">Previous</a>';
                          }
                          if ($total - 1 > $current_pos) {
                             $next_id = $items[$current_pos + 1]['postid'];
                             echo '<a rel="next" href="' .get_permalink($next_id). '" title="'.get_the_title($next_id). '">Next</a>';
                          }
             }
    }
    

    This just decodes the gridder_json and gets the position of the current item. Than it gets the ID's of prev and next Items.

    Works for me. Have a great day!

    posted in General Discussion read more
  • P
    pattn

    thanks Armin, works like a charme!

    posted in General Discussion read more
  • P
    pattn

    Hey there,
    i would like to use the order of post thumbnails from a page to navigate from a single post to the next.

    Is there a simple way to use the laygridder order as post order?

    posted in General Discussion read more
  • P
    pattn

    Hey there,
    i was trying to add a Custom Class to the <div class="lg-grid ....">.

    Is there a filter to modify this markup?

    posted in General Discussion read more