Shnipsel
Forum Replies Created
-
Forum: Plugins
In reply to: [LDD Directory Lite] single2.php included twiceHi again, I hope my case is still under investigation?
In addition to what I’ve reported, LDD Directory Lite is also creating new listings twice. A copy of each new listing is stored during form submission. Post IDs are N and N+1. Users therefore also receive two confirmation e-mails.
Do you have an idea what could cause entries to be stored twice and also show their body twice?
Seems like these two actions (perhaps even more) are invoked twice.
Forum: Plugins
In reply to: [LDD Directory Lite] single2.php included twiceThe last sentence was messed up by my mobile’s spelling check:
Is this a known issue, perhaps targeted in 2.7.2 (latest version)? Or can you point me in a direction how to solve this?Forum: Plugins
In reply to: [Cool Tag Cloud] Feature: show Tags of current archiveHi,
I’ve created a solution for taking current loop posts into account. Perhaps you want to check it out. It’s working well in my case.Replace the whole if-block in cool-tag-cloud.php@71 with this:
if ( $l_tag_params['on_single_display'] == 'local') { if (is_archive()) { rewind_posts(); if (have_posts()) { $l_tag_params['include'] = []; while (have_posts()) { the_post(); $posttags = wp_get_post_terms( get_the_ID(), $l_tag_params['taxonomy'], array( 'fields' => 'ids' ) ); if ($posttags) { foreach($posttags as $tag) { $l_tag_params['include'][$tag] = $tag; } } } } wp_reset_postdata(); }else if ( is_single() || is_singular( array( 'post', 'page' ) ) ) { $tag_ids = wp_get_post_terms( get_the_ID(), $l_tag_params['taxonomy'], array( 'fields' => 'ids' ) ); if ( empty( $tag_ids ) ) { $show = false; } if ( ! empty( $l_tag_params['exclude'] ) ) { $exlude_tags = explode( ',', str_replace( ' ', '', $l_tag_params['exclude'] ) ); foreach ( $exlude_tags as $exlude_tag ) { foreach ( $tag_ids as $tag_key => $tag_id ) { if ( $tag_id == $exlude_tag ) { unset( $tag_ids[$tag_key] ); } } } } $l_tag_params['include'] = $tag_ids; } }
Forum: Plugins
In reply to: [Cool Tag Cloud] Feature: show Tags of current archiveI mean to show tags used by the posts listed on a category archive page.
Forum: Plugins
In reply to: [Cool Tag Cloud] Hiding widget when post has no tagsThe latest version fixes the issue. Thank you so much!
Forum: Reviews
In reply to: [kk Star Ratings - Rate Post & Collect User Feedbacks] GoodIt’s simply googles decision when and where to show the stars. Don’t blame the plugin.
Forum: Plugins
In reply to: [LDD Directory Lite] changing category selectorHi LDD,
I wonder if the above feature will make it into the official plugin someday. Actually today I messed up my code base by applying your update, overwriting my own stuff. Lucky me, I had posted the modifications here. ??
If it will make it into the plugin, there are btw some more changes to be done to make preselection of categories (ie. when editing an entry). It’s not much more than passing $selection on to get_child_categories() for get_selected() to work properly there.
All the best
The code above didn’t work as expected, because post_excerpt is not set. Instead I’m using following code now:
<?php echo wp_trim_words(get_post_field('post_content', get_the_ID()), 24); ?>
It just trims the body to 24 words appending ‘…’. Took some time to elaborate, hope it’ll help someone. Or send me a better fix ??
Forum: Plugins
In reply to: [LDD Directory Lite] changing category selectorI’ve done some modifications, now it works better for me and I’d like to share it…
1. Using <optgroup> for the first level of categories gives a better overview. You can do it by changing _submit.php (@68) (search for function ldl_submit_multi_categories_dropdown):
foreach ($categories as $key => $cat) { $result .= "<optgroup label=\"".$cat->name."\">"; $result .= get_child_categories($cat->term_id,LDDLITE_TAX_CAT); $result .= "</optgroup>"; }
2.) Correct the “brute force” tabbing in function get_child_categories (in file _submit.php):
2.1) change $indent to 0:
function get_child_categories($parent_id,$tax,$indent = 0){
(this is because the optgroup is the first indent level, no need to indent the next level too)2.2) indenting disturbs the filter, so we need to add a real space character in this function in the $child_cat_name. The following code also takes the $indent=0 of 2.1 into account:
if ($indent) { $child_cat_name = str_repeat(' ', $indent).' '.$child_term->name; }else{ $child_cat_name = $child_term->name; }
3.) Update chosen jquery plugin:
- Download from https://github.com/harvesthq/chosen/releases/
- Copy to \wp-content\plugins\ldd-directory-lite\public\plugins
- Add the init to chosen.jquery.min.js as in previous version, I’ve copied the code below in case you didn’t preserve it
Init code for chosen:
jQuery(document).ready(function(){ jQuery(".multi_select_chosen").chosen({search_contains: true, no_results_text: "Oops, nothing found!"}); });
DONE. Now the category selector is more subcategory friendly and filter works for partial words (which is a huge benefit for usability).
- This reply was modified 6 years, 8 months ago by Shnipsel.
Forum: Plugins
In reply to: [Auto SEO Links] List in backend incomplete (online 10 entries)Hey Dima,
Thank you so much, it was really just the missing ‘s’. So you’ve reported 4 months ago and no fix yet? It’s a shame. Hope it’ll get fixed before the next update breaks our installations.
Regarding your question, I tried several similar plugins, but all of them were unusable or too expensive for the use case.
Kind regards
Forum: Plugins
In reply to: [Auto SEO Links] List in backend incomplete (online 10 entries)PS: The limit comes from
Settings >> Reading >> Blog pages show at most
which is set to 10. I’m still unable to override this value via code. Have tried setting all wp_query() of the plugin to a page size of 99999, still with no success.