supertomate
Forum Replies Created
-
Forum: Plugins
In reply to: [Sessions] Limit user sessions up to 5Hi Pierre
Indeed I find the question relevant and although Aziriel did not want to know, I am looking to move to 5 or 6 sessions. I know how to edit a php file ??Hello and thank you very much for this quick answer.
I just tried it and unfortunately it didn’t work ??
I’m sure it’s because we don’t use the basic wordpress system but an ajax call + code in the functions.php file.It does block the sending of emails in the backend but unfortunately also for the users in the frontend
Forum: Plugins
In reply to: [ZenCache] Try to disable ZenCache on HomepageHave you try :
define('DONOTCACHEPAGE', TRUE);
it works for me in a header-home.php template
Forum: Plugins
In reply to: [WP Post to PDF] custom fields not displayed in the pdfHi archiparmentier,
you have an error with each $post_id … it must be $post->ID
$ville = get_post_meta($post->ID,'contenu_annonce_ville',true);
Forum: Plugins
In reply to: [Intuitive Custom Post Order] Sorting in ASC orderHi Sykot,
all the function is in the main php file of this plugin :
add_filter( 'posts_orderby', 'hicpo_posts_orderby' ); function hicpo_posts_orderby($orderBy) { global $wpdb; $orderBy = "{$wpdb->posts}.menu_order, {$wpdb->posts}.post_date DESC"; return( $orderBy ); }
Either you modify this file, or you add in your theme function.php a similar function
Forum: Plugins
In reply to: [Intuitive Custom Post Order] QuickEdit mode brokenHello tmconnect,
you have to modify the js file intuitive-custom-post-order/js/hicpo.js. In this case, we can only drag by the aera on the left with the input button we use to select one or more posts. All the rest of the line isn’t draggable and also editable .
jQuery(document).ready(function() { jQuery("#the-list").sortable({ 'handle' : 'th.check-column', 'items': 'tr', 'update' : function(e, u) { jQuery.post( ajaxurl, { action:'update-menu-order', order:jQuery("#the-list").sortable("serialize") }); } }); // jQuery("#the-list").disableSelection(); });
Hi jshultz,
Ardesign gaves a solution in this reply : https://www.ads-software.com/support/topic/plugin-smarter-navigation-switch-to-order-by-menu_order?replies=4
simply modify the get_adjacent_id function by adding ‘orderby’ => ‘menu_order’ in the $args
static function get_adjacent_id( $previous = false ) { if ( !isset( self::$data['query'] ) ) return -1; $previous = (bool) $previous; if ( !isset( self::$cache[$previous] ) ) { $args = array_merge( self::$data['query'], array( 'smarter_navigation' => $previous ? '<' : '>', 'order' => $previous ? 'DESC' : 'ASC', 'ignore_sticky_posts' => true, 'nopaging' => true, 'orderby' => 'menu_order' ) ); $q = new WP_Query( $args ); self::$cache[$previous] = empty( $q->posts ) ? 0 : $q->posts[0]->ID; } return self::$cache[$previous]; }
Forum: Fixing WordPress
In reply to: Getting the link to the first menu itemYou would have better done to build a menu in WordPress for your main page …
Forum: Fixing WordPress
In reply to: Getting the link to the first menu itemI don’t understand what you mean by be able to point at … do you need to retrieve the first object href of your menu ? or do you want to have the same link in an other place in your page ?
Forum: Fixing WordPress
In reply to: Getting the link to the first menu itemHi roothost,
paste it anywhere you want in header.php for example … that code do nothing for the moment, you have to use echo $link; orprint_r($top);
to see what is output … see more -> https://codex.www.ads-software.com/Function_Reference/wp_get_nav_menu_items.Forum: Fixing WordPress
In reply to: Getting the link to the first menu itemold but we can still answer isn’t it ?
<?php $top = wp_get_nav_menu_items('name of the menu in admin'); $link = $top[0]->url; ?>
Hi the column “rul_url_logout” is missing in the table wp_login_redirects … so add it using phpmyadmin for example …
Forum: Fixing WordPress
In reply to: [Faster Image Insert] Faster Image Insert Error WordPress 3.2Hy all,
there is a trouble with language .po
I work with the french version and the .po contains some translation for javascript string with apostroph … so it gave us an error … what to do => replace in poedit all apostroph by’
…No shame on you ?? Your plug-in is really pretty cool and this small bug is really nothing ??
Hi, your trouble comes from an error in prototype js.
noConflict is perharps one solution (even if you say that nothing appends with) and removing the prototype the best solution ??