newkidintheblock
Forum Replies Created
-
Dear Ernest,
yes I have lazy loader. But in the meanwhile I found a setting in your plugin which solved my issue. ??
It was under Compability settings/Query compability/Do a soft-check only on search override, when trying to check if the current query is the search?
Your plugin is amazing!!!Dear Ernest,
thank you for your promt answer. The css worked like charm and the override feature helped partially (second point is solved).
However the search result page is still showing more posts than the ajax dropdown list.
Under the setting I can read this: “Might not work with some Theme“. Is it possibble that my Theme(twentyfifteen child) doesn’t support this? How can I check it or force it better?
Thank you again.Forum: Plugins
In reply to: [Alphabetic Pagination] Styling:Disable Empty Alphabets doesn’t workHi Fahad,
you are right. thank you for your suggestion, I am still learning.
Kr,
newkidintheblockForum: Plugins
In reply to: [Alphabetic Pagination] Styling:Disable Empty Alphabets doesn’t workHi Mahmood,
thanks for your help.
I finally ended up with an own solution. I replaced the plugin with a snippet.
I share it here for those who also looking for such functionality.
It works in category.php(or archive-php). Where you want the ABC navigation to be shown, insert this: alphabet_navi();And this coding goes into the functions.php:
if($_GET[“alphabet”])
{
add_filter(‘posts_where’,’alphabet_selection’, 10 , 2 );
function alphabet_selection( $where )
{
global $wpdb;
$where .= “AND LEFT({$wpdb->prefix}posts.post_title, 1) = ‘”.$_GET[“alphabet”].”‘ “;return $where;
}
}
function alphabet_navi() {// Collecting all posts within current category into an array
$cat_id = get_queried_object_id();
$args = array(
‘cat’ => $cat_id,
‘orderby’ => ‘post_title’,
‘order’ => ‘ASC’,
‘nopaging’ => true,//get all posts
‘posts_per_page’ => -1); //get all posts
$posts = get_posts($args);$existing_chars_only = array(); //collecting in that the first characters from post titles-only those which exist in the category
foreach ($posts as $post) :
$ltr_group = substr($post->post_title, 0, 1);
if(!in_array($ltr_group, $existing_chars_only)){ //Add CHAR only if new
$existing_chars_only[] = $ltr_group;
}
endforeach;//Collecting all posts within current category into an array-END
//echo ABC list
$wp_alphabet = range(“A”,”Z”);
echo ‘<div class=”alphabet_navi-wrap”>’;
echo ‘<div class=”alphabet_navi-letters”>’;echo ‘<ul class=”alphabet_navi-links”>’;
foreach ($wp_alphabet as $wp_aplha){
if(in_array($wp_aplha,$existing_chars_only)){ //if this CHAR exist among the posts
if($_GET[“alphabet”] == $wp_aplha){ //if we are on a page of the selected CHAR
echo ‘<li class=”alphabet_navi-hasposts alphabet_navi-selected”>‘.$wp_aplha.’‘;
}
else{
echo ‘<li class=”alphabet_navi-hasposts”>‘.$wp_aplha.’‘;
}
}
else{ //if there isn’t such CHAR among the posts
echo ‘<li class=”alphabet_navi-noposts”>’.$wp_aplha.’‘;
}
}
//echo ‘‘;
echo ‘</div>’;
echo ‘</div>’;
}`Forum: Plugins
In reply to: [Alphabetic Pagination] Styling:Disable Empty Alphabets doesn’t worksorry, I’ve forgotten to say that “W” is a good example. There isn’t post within that Char.
Forum: Plugins
In reply to: [Alphabetic Pagination] Styling:Disable Empty Alphabets doesn’t workHello,
sure, here it is:
https://novenyek.com/location/croatia/
thanks!Hi,
thanks for the reply.I understand why I can’t see the ‘Create new’ button, it is fine. So,it means one default map should be there then which isn’t.
I am not quite familiar with the database tables yet but I tried to check those tables you mentioned and unfortunately I could not find them. (I logged into MySQLAdmin and lefthanside opened ‘wordpress’ directory node.Under this node all tables start with “WP_” so I looked for wp_wpgmza, wp_wpgmza_maps..but can’t find any….hope this way is correct <:) )
So, have you got any idea why?
I am not using multisite setting. At the moment I use the InstantWordPress as an offline ‘sandbox’ and it is not even possibble there. However later on I want to switch to the ‘productive’, online version with multisite settings.