ironlion37
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to remove Excerpt if left empty?Thanks Jarrett! For anyone that comes across this, adding this line to the twenty-nineteen child theme does work to prevent excerpts when the excerpt input is left blank:
remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
And here’s a link to a ready made twenty nineteen child theme if anyone needs it:
[removed link]- This reply was modified 5 years, 6 months ago by Ipstenu (Mika Epstein).
Forum: Plugins
In reply to: [Random Post on Refresh] How to remove Excerpt if left empty?Wow, thanks Micah!
That really did the trick. I had placed this in my child theme’s functions.php:
remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
However it wasn’t working. The change you made in this update allows that to work so no excerpt displays when the except input is left blank. Thank you!
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to remove Excerpt if left empty?Hi again, I think I’ve narrowed this down to a plugin. Please disregard.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to remove Excerpt if left empty?I really appreciate you taking the time respond. Unfortunately that code seems to have no effect. I reproduced the folder structure in the child theme (/template-parts/content/content-excerpt.php) and made the code change, cleared all caches and it’s still behaving exactly the same. It just generates an excerpt from the content when the excerpt input is blank.
Edit: I should mention that this is multi-site install. I’ve double checked that the site in question is using the child theme. However, I can’t see any evidence that the edited content-excerpt.php file is being picked up.
Are you sure that’s the right file? In its description it says “Template part for displaying post archives and search results.” I’m not talking about excerpt display in archives or search results…
Edit 2: I think the problem with this solution is that the template is still creating an excerpt and so the “if, else” statement doesn’t do anything because the template has already created excerpt content automatically.
- This reply was modified 5 years, 6 months ago by ironlion37.
- This reply was modified 5 years, 6 months ago by ironlion37.
- This reply was modified 5 years, 6 months ago by ironlion37.
Forum: Plugins
In reply to: [Advanced Editor Tools] Change TinyMCE Skin?Thanks Andrew. I found a much better/simpler solution to creating a dark theme for WordPress admin.
Hi, thank you for your reply!
As a low cost alternative, I just used this solution:
https://www.wpbeginner.com/wp-themes/how-to-show-different-menus-to-logged-in-users-in-wordpress/Forum: Plugins
In reply to: [Random Post on Refresh] How Is Random DeterminedThanks Micah! Very helpful. For my use case, slow queries are a non-issue.
Forum: Plugins
In reply to: [Random Post on Refresh] How Is Random DeterminedThanks Micah. I just updated and immediately see an improvement. I think the way I’m using this is probably unusual, but it works great. I’m at 99 posts so far and plan on creating at least hundreds. Would it be relatively simple for me to edit the code to have it pull from say 500 recent posts, or just “all”?
Forum: Plugins
In reply to: [Random Post on Refresh] How Is Random DeterminedUpdate: yeah, the plugin consistently displays the last few posts I’ve created. I’m not seeing any older posts.
Forum: Plugins
In reply to: [Random Post on Refresh] Display Custom Fields?Hi again, I was over thinking this. I can just use content and excerpt as the two fields I need for this project. Thanks!
Forum: Plugins
In reply to: [Random Post on Refresh] Display Custom Fields?A little more info: I added those custom fields with the ACF plugin – which stores them in the postmeta table like this:
meta_key
valueSo the meta keys I would like to show the values for are “quote” and “attribution”.
Would it be possible to modify your plugin to be able to recognize a meta_key after “show” in the shortcode?
[random_post_on_refresh show=”quote,attribution”]
Challenging though because the plugin would have to also generate a span class with the same name so that it can be styled on the front end.
Forum: Plugins
In reply to: [Random Post on Refresh] Sorry, no matching posts were found.Very nice. Thanks for the quick response!
Forum: Plugins
In reply to: [No Right Click Images] Doesn’t work in Chrome Browser?Ok, very good. Thanks for the response!
Forum: Plugins
In reply to: [Maintenance Mode] Not working with WordPress 4.9.8Confirmed, I just reverted WordPress and it started working again.
Hi, is this coming back? (soon?)