lacoder
Forum Replies Created
-
Forum: Plugins
In reply to: [WPS Hide Login] redirect pageHmm, I tried this but it doesn’t seem to work?
It seems to be written to only redirect people who are the admin? I added an ‘!’ before ‘is_admin()’ and it seems to work now.
final code:
if ( ! is_admin() && ! is_user_logged_in() ) { wp_redirect(home_url() . '/error?m=' . urlencode($message)); exit(); }
- This reply was modified 8 years, 2 months ago by lacoder.
Forum: Plugins
In reply to: [teachPress] Exclude tags from listing?Hiya!
Thanks, I managed to get this working however it doesn’t seem to work with [tplist].. Is there something I can do to get this working?
Here is the shortcode as I am trying it:
[tplist author=”15″ exclude_tags=”15,28,37,52,60,67,73,80,74,88″ style=”simple” link_style=”direct” headline=“0″]
It works if I change [tplist to [tpcloud].
Thanks again,
Rob
Forum: Plugins
In reply to: [teachPress] Exclude tags from listing?Great, thanks I will give that a go!
Forum: Plugins
In reply to: [ACF Recent Posts Widget] Excerpt ellipsisAh Wonderful!
This did exactly what I was looking for! Brill! Thank you
You’re the best ??
Forum: Plugins
In reply to: [ACF Recent Posts Widget] Excerpt ellipsisHi there,
I’m really sorry to bother you again, I’ve tried to get this to do what I need and I’ve been struggling ??
I just want it to have a “…” at the end of the excerpt and then still be able to have the “Read More” on the next line (as I have it currently).
Thanks again so much!
Forum: Plugins
In reply to: [Easy Twitter Feed Widget Plugin] Custom heightbump
Forum: Plugins
In reply to: [ACF Recent Posts Widget] Custom fieldsbump
Forum: Plugins
In reply to: [Gwolle Guestbook] Not accepting entriesGreat, its working now, Thanks!
Forum: Plugins
In reply to: [Gwolle Guestbook] Not accepting entriesHi,
Thanks for getting back to me so fast ??
I’ve inpected the error and it is the “error_fields” error. I’ve tried turnign off the reCAPTURE too but its still the same.
Forum: Plugins
In reply to: Jetpack – Number of Facebook likesFor anyone else looking for an answer on this, it seems that the likes stay as long as the domain and permalink structure don’t change ??
Forum: Plugins
In reply to: [Gwolle Guestbook] Write Entry by defaultThat’s great thanks!!
Is it possible to change the “Write a new entry for the Guestbook” text?
Thanks
Hey, just in case anyone else if trying to solve this, I managed to get it working by overwriting the trimming function in my child theme’s ‘function.php’ as follows: (p.s. my text was a < blockquote > so if yours is a < p >, you could try just swapping these)
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions here. // ============================================================================= remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'improved_trim_excerpt'); function improved_trim_excerpt($text) { // Fakes an excerpt if needed global $post; if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace('\]\]\>', ']]>', $text); $text = strip_tags($text, "<blockquote>"); $text = explode("<blockquote>", $text); $excerpt_length = 55; $words = explode(' ', $text[1], $excerpt_length + 1); if (count($words)> $excerpt_length) { array_pop($words); array_push($words, ". . . " . '<a class="excerpt_readmore" href="' . apply_filters( 'the_permalink', get_permalink() ) . '">' . "(Read More)" . '</a>'); $text = implode(' ', $words); } } return $text; }
Hey, cool I’m glad you managed to sort it out ??
Mine seems to make a link automatically ??
Try putting this in your css:
ul.display-posts-listing .excerpt-dash { display: none; }
??
Hi all, did this ever get solved with the newer versions?