dumb wordpress questine
- Started
- Last post
- 26 Responses
- hans_glib0
you sir are genius - that works a treat.
thx so much, now to sort the layout...
- ESKEMA0
Start by installing Advanced Custom Fields if you haven't already
( http://www.advancedcustomfields.… )I'm not sure, but I would go on and delete what's after line 17 on your functions.php (or at least comment it, just in case)
Create a new image field with the Field Name "excerpt_image"
Go to your post, add an image to the newly created field.and try this on your homepage template:
- hans_glib0
Cheers Eskema
Have dumped the offending code into pastebin now
The excerpt code (found on teh interwebz):
http://pastebin.com/g1M0NQbrthe news page (currently showing excerpts for some reason)
http://pastebin.com/zrT3wvDythe content page:
http://pastebin.com/JNCYMVNXthe homepage where i want the excerpts to be
http://pastebin.com/V3w5fjJ5
- ESKEMA0
here's an output for an image field (ID)
http://pastebin.com/bbqLyhNV- will WP see this as the place to put the thumbnail for each excerpt? (ie repeat the field for each excerpt)hans_glib
- ESKEMA0
the thing I see here is that you are using a technique to get image into the excerpts, but then you want them out of it.. Not the best approach.
I would use Advanced Custom Fields to create an Image Field and assign it to posts or whatever.. then just output it before that code you have above...
- ESKEMA0
please post the code in something like paste bin, code pen or jsfiddle, it's a lot easier for people to help, without having to retype everything.
- hans_glib0
The problem is that WP is arranging the excerpt so:
<h3>headline</h3>
<div class="thumbnail pic"></div>
<p> excerpt </p>and i need it to arrange it like this:
<div class="thumbnail pic"></div>
<h3>headline</h3>
<p> excerpt </p>and I can't see anywhere in the coding that will allow this
sorry to keep on at this, but it's so frustrating!
- Xopher0
You could just use a plugin if you're not up to speed.
This one pulls the recent posts and lets you include the featured image, post excerpt etc...
- hans_glib0
yes but the problem is the thumbnail is supposed to go into the attachment-custom_thumb div, and it isn't. I don't understand the code to know why it's not happening
- hans_glib0
<!--bump-->
- hans_glib0
back again
hopefully for the last time, but don't hold your breath...
I want to include post excerpts and thumbnails on the home page to look like this:
found some bits of code to get it to work (mostly) but it looks like this:
The image is starting below the headline, rather than at the same height, and the I want the second post headline to start after the first post image. The code I have is
Ta (again)
- Nathan_Adams0
You don't have to go through the <?php /* Template Name: Donate */ ?> and then select the template routine.
If you name a file page-xxxxx.php, then it will get used by default by any page titled xxxxx. So create page-donate.php, upload it, and that's your Donate page taken care of.
- can it then be edited within wordpress?hans_glib
- if you still have your template tags in it, then yes. It's just an alternative way of doing page templates.Nathan_Adams
- hans_glib0
hey presto ukit, strikes again. I scoured t'interwebz looking for a basic how-to but they either are too simple or too complex.
thank you sir.
- ukit20
By default the posts function will bring up the content for the page itself rather than the actual posts.
In order for it to display the posts...you will need to go to Settings > Reading and where it says Posts Page select that page.
- hans_glib0
ukit2 you are a genius - thank you so much.
amazingly i managed to get the plugin to work - sorted!
qbn to the rescue again