snikay

snikay

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Custom Query – how to use / to show different order? #6421
    snikay
    Participant

    I already rated it over there 🙂 We talked about that in the emails as we were talking about WPeddit.

    in reply to: Custom Query – how to use / to show different order? #6413
    snikay
    Participant

    Oh! NOW I understood how this works! The = was missing;

    meta_key=epicredrank&orderby=meta_value_num&order=DESC

    Thanks, D! 🙂

    in reply to: Custom Query – how to use / to show different order? #6412
    snikay
    Participant

    Hm, if i just paste this into the custom query field, the order still is by date/last posts.

    This is the code I had to put into the functions.php:

    //code for changing the custom post order
    function wpeddit_order($query) {
    		global $wp_query;
    		if ( ! $query->is_main_query() )
    	    return $query;
    		
    	      if(!is_page() || !is_admin()){
    	      	if(is_main_query()){
    				$query->set('meta_key', 'epicredrank');
    		  		$query->set('orderby', 'meta_value_num');
    		  		$query->set('order', 'DESC');
    			}
    	      }
    		return $query;
    }
    add_action('pre_get_posts','wpeddit_order');
    snikay
    Participant

    Hey Dinesh!
    Okay cool 🙂 Sometimes it’s still not that easy so explain myself the right way. As you know you can hit me up for testing too!
    Thanks!

    snikay
    Participant

    Right, I understand this.
    My point is, to load the next posts before even reach the bottom when scrolling down. Just to not have to see the next posts being loaded.

    in reply to: Some Posts not displaying date #5763
    snikay
    Participant

    Looks the same every time. Tried to deactivate all plugins, used <?php the_date('Y-m-d') ?>. It stays like that. Also the problem appears on new created posts. Not on all of them though.. Some days ago the date was missing on one post again.
    Now i am using <?php wp_days_ago_v3 ($stopUsingAjaxAfter, $showDateAfter, $showDateFormat, $showYesterday) ?> because using WP-days-ago. now i have the date on all posts.

    in reply to: Display Custom Post Field #5710
    snikay
    Participant

    This works, thanks! 🙂
    I’m still too noobish -.-
    [can be closed – thanks!] 😀

    in reply to: Different "Order By" Sorting #5682
    snikay
    Participant

    Hi,
    yeah thanks, that would be a solution for now. i really appreciate your effort and hope for a custom field order for the upcoming version. would be really great.

    would it work if i make a copy of the plugin to use it as a “second grid”?

    If not, i would stick to your solution for now!

    in reply to: Different "Order By" Sorting #5665
    snikay
    Participant

    This would be great!
    Oh, also maybe i should let you know that i wan’t to to use your Grid on different pages. So on one page i want to have the WPeddit order, on another page i want to have it shown by date (just as your plugin already offers).
    Maybe you can build me just a new field for the “order by”-dropdown?

    in reply to: Different "Order By" Sorting #5656
    snikay
    Participant

    Sorry for spaming..your edit-button doesn’t work porperly..

    the author of WPeddit said, that if the listing isn’t showing properly, the “theme” – or in our case your plugin – “is doing something to the wp_query. So maybe around there would be a hook?

    in reply to: Different "Order By" Sorting #5655
    snikay
    Participant

    If i set “Order By default” it just does nothing and keeps listing the posts by date (new-to-old) – WP default. If i select “Order by none” it’s date backwards (old-to-new).

    This is the code i put in my functions.php to get the WPeddit order to show up:

    //code for changing the custom post order
    function wpeddit_order($query) {
    		global $wp_query;
    		if ( ! $query->is_main_query() )
    	    return $query;
    		
    	      if(!is_page() || !is_admin()){
    	      	if(is_main_query()){
    				$query->set('meta_key', 'epicredrank');
    		  		$query->set('orderby', 'meta_value_num');
    		  		$query->set('order', 'DESC');
    			}
    	      }
    		return $query;
    }
    add_action('pre_get_posts','wpeddit_order');
    
    in reply to: Different "Order By" Sorting #5654
    snikay
    Participant

    Whoops..okay forget that i said it is working on the test installation. it’s not :/

    in reply to: Different "Order By" Sorting #5653
    snikay
    Participant

    Hi!
    Answering here now instead of replying your mail.
    I already bought the Pro version because your Grid seems to be the only usefull one 😉
    Now i tested again on a blank second WP installation. and you’re right, it is working! so i was right too..it used to work on my project but now it somehow stopped working. whatever i do and play around with the shortcode settings, i can’t get it to work again. now i’m starting to freak out a bit -.- but i really don’t know what i could have done that one installation is working fine – the other one not..

    in reply to: Call to action button and title text #5639
    snikay
    Participant

    Hey Guy,
    so, as i already asked in the contact form, i want to customize the plugin theme. Maybe via something like a <strong>custom-</strong>layout.php.
    But your answer to Kati sounds like the only “changes” we can make, are..none..


    @knickl
    if you’re still here and haven’t bought another plugin 😉 i figured out that you can edit the plugin’s folder: wp-masonry-layout/themes/THEMENAME/layout.php
    But than you have to turn off updates to not let your modifications get overwritten!
    This is why i am asking for a simple custom-layout.php that not gets updated..

    So Guy, what can you do to still help us out?

Viewing 14 posts - 1 through 14 (of 14 total)