thetanooki
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Just need some clarification on get_post_meta()Unless there’s something hidden that I don’t know about, then yeah – I’m looking at it right on the Edit Post screen.
If it helps, here’s the plugin in question: https://www.seoadsensethemes.com/wordpress-wp-post-thumbnail-plugin/
Towards the bottom of the actual info post, the author provides a code for theme developers to insert the thumb manually into themes. This code doesn’t work, and speculation is that something with the plugin isn’t compatible with 2.8.4. However, the plugin itself still works, as it will still automatically insert the thumb at the beginning of the_content (or the_excerpt, if you know where to make the edit). I tried it with the_excerpt, but part of the reason I’d rather insert it manually is because I don’t want the thumbs with all my excerpts (multiple loops).
I asked if anyone knew a workaround for inclusion in themes, as seen at the bottom here: https://www.seoadsensethemes.com/0-2-beta-2-release/ I was given an example code, but it doesn’t work – it doesn’t call the image. But I noticed they used get_post_meta, which sure enough the URL for the thumbs is stored as a custom value when I checked. I’m just trying to get a working code out of it.
Again, unless something else is hidden, there shouldn’t be much more to it. The key name is wppt_4x3, and the URL provided is indeed the thumb location. Am I missing something?
Forum: Themes and Templates
In reply to: Just need some clarification on get_post_meta()Thanks for the response. This is pretty much what I had, but I tried again with what you provided exactly. Same result, for some reason I just keep getting the alt text instead. Here’s what the source code says is outputting:
<img src="" alt="thumbnail image" width="100" height="75" />
Forum: Themes and Templates
In reply to: How to create an alternate/second type of excerpt?Thanks! That seems to do the trick ??
As for the plugin, it’s designed to auto-insert at the beginning of the_content when it’s on the homepage. I use excerpts, though, but I was hoping to just manually insert the thumbs into my theme as I pleased – unfortunately the code provided doesn’t work, and it’s supposedly due to the plugin not being 100% compatible with 2.8.4, and the developer has been MIA since May, I think. In the meantime, I just changed the_content to the_excerpt, since I use thumbs on most of the excerpts.
Thanks again!
That makes sense. Thanks a ton for your help!
For example, here’s what a normal excerpt looks like:
Title Title Title Title Title Title Title
——— by Author in Category *twitter link*
| |
| thumb | Excerpt Excerpt Excerpt Excerpt Excerpt
| | Excerpt Excerpt Excerpt Excerpt Excerpt
——— ##views | ##commentsNow, by adding your code, I can easily remove parts in the middle. Since the thumbnails are tied to the call to list the categories, that needs to go, but I’d like to reformat the non-thumb posts so it looks more like this:
Title Title Title Title Title Title Title
by Author – ##comments – *twitter*To do that, I assume I’d basically need to rewrite part of the code, albeit in the simplified form, and it would simply be inside an “else” statement.
That works, thanks a ton!
On a side note, what would be the proper way/syntax to turn this into an if/else in case I want to customize the look of the headline-only part a little more?