Pat Hawks
Forum Replies Created
-
Forum: Plugins
In reply to: [Embed PDF] [Plugin: Embed PDF] Easy to work withIf you want to change the default size of media embedded in a post, that can be done in the admin interface under Settings?Media Settings?Embeds
If you’d just like to change the size of one instance, you can use the standard attributes of the WordPress embed shortcode.
[embed width="400" height="600"]https://example.com/document.pdf[/embed]
Yes, this is something that has been brought up before.
I have been kicking around the idea of adding a settings page with these sort of template options.In the meantime, if you’re handy with PHP, you could just edit taggedtext.php
It works just like any other WordPress template file and can use all regular template tags.Forum: Plugins
In reply to: [Embed PDF] [Plugin: Embed PDF] Doesn't work for meBoth of these pages seem to be set to private. That doesn’t help much.
The problem seems to be fixed by changing line 766 to:
if( (isset($_POST['aiosp_enabled']) && $aioseop_options['aiosp_enabled']!='1')){
Forum: Plugins
In reply to: [Embed PDF] Dirty Suds Embed PDFI hate to sound like a broken record, but I use this plugin on a production site with no issues in any version of IE.
If there is something to be fixed, I’d love to fix it, but until I can get to the root of the problem, there is nothing I can do.
PLEASE post some screenshots with viewsource or give me URLs to frigged up pages. This is something I want to fix, but I have yet to see the problem myself.
Forum: Plugins
In reply to: [Embed PDF] [Plugin: Embed PDF] Doesn't work for meI’m assuming you include the
https://
in the URLCan you send me a link to the page? What does it output? Does it just show the text URL, or does the Google Docs Viewer appear without a document?
I’m really not sure why it would work on a test site but not a live site. Let’s figure this out together.
One more tip (well, kind of a hack, but it works in a pinch)
You can always surround the URL with the[embed]
shortcode. This also allows you to change the default height and width.[embed height='300' width='400']https://www.youtube.com/watch?v=y-LsEajbD4I[/embed]
Forum: Plugins
In reply to: [Embed PDF] [Plugin: Embed PDF] Brilliant, thanks!Glad it is useful for you!
Forum: Plugins
In reply to: [Postlist Shortcode] can't get more than 5 posts to be listedPerhaps this would be more trouble than it’s worth, but what if instead of using a bunch of shortcode attributes for the template, we used the shortcode content?
[postlist] <li><a href="{LINK}">{TITLE}</a></li> [/postlist]
[postlist] <ul> <li><a href="{LINK}">{TITLE}</a></li> <ul> [/postlist]
[postlist] <ul> <li><a href="{LINK}">{TITLE}</a></li> <li><a href="{LINK}">More Posts...</a></li> <ul> [/postlist]
The code would explode the content by line into an array. If there was only one line, it would be used as itemtemplate. If there were two lines, the second would be used as morelinktemplate (without the
{TITLE}
).If there were three lines:
before itemtemplate after
Four lines:
before itemtemplate morelink after
Thoughts?
Forum: Plugins
In reply to: [Postlist Shortcode] can't get more than 5 posts to be listedI have no idea why I was using the global $post. Must have bumped my head.
I don’t think we need to extract the variables. Just adds code and chance of something getting screwed up.Now that we’re allowing users to include their own HTML, I’m running the output through WP_KSES.
It feels like the whole plugin is run through
if ($posts) {
It kind of gave me a headache. I may change it toif (!$posts)
and return some comment about nothing found, but have not changed that yet.I like how things are shaping up.
Forum: Plugins
In reply to: [Postlist Shortcode] can't get more than 5 posts to be listedBefore and after would certainly be the easiest.
Not super flexible, but I suppose hard core template devs won’t be trying to mess around with shortcodes in the first place.I’ve added you as a committer to the repo. Do what you need to do.
Forum: Plugins
In reply to: [Postlist Shortcode] can't get more than 5 posts to be listedWhoops. Haven’t updated the code in the repository for a while.
I’m using a newer version on my sites than what I’ve released.Adding this to the repo. If you’d like to work on this with me, I’d be happy to add you as a contributor.
I’ve thought about adding template stuff, but just haven’t had the need for my own sites.Forum: Plugins
In reply to: [Postlist Shortcode] can't get more than 5 posts to be listedSorry this is all so poorly documented.
Try this instead.[postlist post_type="news" numberposts="9999"]
Forum: Plugins
In reply to: [Embed PDF] Dirty Suds Embed PDFWell, I’m glad everything is working now, even if we don’t understand quite why it wasn’t in the first place ??