Frank.Prendergast
Forum Replies Created
-
Forum: Plugins
In reply to: Custom share button for LinkedInJust in case anyone is looking for more info on how to create a custom LinkedIn button in a WordPress template I put together notes on my approach here: https://frankprendergast.ie/blog/1027/linkedin-share-button-wordpres/
I hope to have a plugin to handle it soon, but in the meantime, I hope this helps.
Forum: Fixing WordPress
In reply to: new post thumbnail function and alt attribute valueps ‘main-image’ is my thumbnail name as defined in functions.php
Forum: Fixing WordPress
In reply to: new post thumbnail function and alt attribute valueNot sure exactly what you mean cooperanet, but I have been trying to figure out two things today:
1. Why the alt attribute is alt=”” using the_post_thumbnail
2. How to get *just* the alt attribute of an image being used as a thumbnailUnfortunately I don’t have answers to either.
What I did in the end was get the title of the image and insert that into the alt attribute and also use that text where I wanted to use the alt text.
$thumb_id = get_post_thumbnail_id( $post->ID );
$thumb_title = get_the_title( $thumb_id );Then you can use $thumb_title wherever you need it, including setting is the alt attribute:
the_post_thumbnail('main-image', array('alt' => $thumb_title));
If anyone knows why the alt attribute is showing up as alt=”” or how to actually retrieve the alt and not the title I’d love to hear.
Not sure where exactly I found the above solution, but some great tips in the comments on this thumbnails post.
Forum: Fixing WordPress
In reply to: Can’t Approve Comments! Please Help!I *think* the issue has been resolved for me by matthewc’s suggestions.
I checked in my hosting control panel and turned off php4, forcing php5 to be used as the default.
I then reuploaded class-phpmailer.php and class-smtp.php from the wp-includes folder.
So far it appears as though the issues have disappeared.
Forum: Fixing WordPress
In reply to: Can’t Approve Comments! Please Help!I don’t seem to have an issue with bulk approving, only approving via the dashboard.
Also – I think matthewc is definitely onto something – if I turn off email notifications for comments the issues seem to go away. Anyone else confirm same?
I’m currently having connectivity trouble, so can’t get any further with this issue, but thought I’d update what I found so far anyway.
Forum: Fixing WordPress
In reply to: Can’t Approve Comments! Please Help!I’m having the same issue – have ensured I’m using PHP5 but the issue still remains.
Approved comments revert to unapproved.
Comments will approve through the edit comment page.Possibly related issue: When leaving a comment the page sometimes times out, but the comment goes through. Anyone else with the approving comments issue getting this as well?
Forum: Plugins
In reply to: List subcategories if viewing a Category, and brothers if in subcat.I’d love to do this too. Been searching but it seems like any solution I find will only deal with one or two levels deep. There doesn’t seem to be a truly dynamic solution available…
Forum: Fixing WordPress
In reply to: List Current Category and its Sub-Categories….I’m looking for a dynamic way to tackle this issue too.
I feel the anwer must be out there but haven’t found it yet…