gregfuller
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack Search] Can’t Fully ActivateI tried logging into WordPress.com on a separate tab before trying again. Same result.
Forum: Themes and Templates
In reply to: [Blockpress] Just Wondering…OK, thanks. That’s a nice implementation for a table of contents.
- This reply was modified 2 years, 7 months ago by gregfuller.
Forum: Themes and Templates
In reply to: [Blockpress] Just Wondering…Ok nevermind. I see it now.
Forum: Plugins
In reply to: [WP-dTree] Not displayed when in new widget editor@vadym1 Thank you! I had been trying to solve this problem when I read your post.
Forum: Plugins
In reply to: [WP Subtitle] Error in editing post screenI’m getting this too. PHP 7, if it make a difference.
- This reply was modified 8 years, 2 months ago by gregfuller.
I’m sure you do use it in your plugin, but I’m addressing how to manipulate the output without modifying the plugin, by using hooks and filters in the functions.php file of the theme or another plugin.
I tried the the_title and the the_except filter and both worked. “get_the_title” is not a filter, and by itself would not work.
“You can add your code in my layout”
What does this mean? That I would have to modify the plugin?
Do the standard WordPress filters work, like “the_title”?
Does this mean that I could insert a custom field programmatically via a hook, filter or some other means? I have a post subtitle field I would like to display. The field is in post meta.
Thank you.
Forum: Plugins
In reply to: [WPSiteSync for Content] Red X password problem also, totally new sites.Will do, thanks.
Forum: Plugins
In reply to: [WPSiteSync for Content] Settings don't save – cannot use pluginIs this being looked into? Do I need to open a new thread? I thought I would piggyback on this thread since I have the exact same problem.
Since my last post I have tried it on another unrelated set of sites and I get the same problem.
Forum: Plugins
In reply to: [WPSiteSync for Content] Settings don't save – cannot use pluginI’m having the same problem, even after deactivating all other plugins, then deleting and reinstalling the WPSiteSync plugin.
Forum: Plugins
In reply to: [Mammoth .docx converter] Embed Style MapOn the html filtering, I’m working on the code now. I’ll can send it to you, to see if you’re willing to merge it. It will be done in a way that might be useful to others, using hooks and such. If you decline, no problem, I understand.
Forum: Plugins
In reply to: [Mammoth .docx converter] Embed Style MapAfter thinking about the preview html question some more, a better way would be to add a couple special php WordPress style filter hooks to apply to the html.
One would be pre-preview to allow the html to get filtered before you display the preview.
The other would be after “Insert into Editor” gets pressed but before the html gets inserted into the editor.
I checked, and the content-edit-pre hook does not fire when that happens.
The transforms could then be done in PHP.
Forum: Plugins
In reply to: [Mammoth .docx converter] Embed Style MapThere are a number of transforms I would want to make. For example, using imaging metadata. MS Word has some, however poor facility for adding metadata for images, like alt text, but it’s not parsed by Mammoth or Calibre.
So I’ve established a convention of placing a paragraph of style ‘ImageMeta’ after the image, and placing some meta in a one line paragraph of that style. The text line looks like this:
A Pretty Picture | Photo by John Doe | https://whatever.com/hello
where the metadata is alt text (and title), attribution, and link. I format this to look like a caption with very small text, but it’s not an MS Word caption for a number of reasons.
I could then manipulate the html to include the alt text, make it a link, and put the attribution in another attribute on the image tag. Since the file name is generated, it may be important for SEO to have the alt text be descriptive.
That’s just one of the transforms I want to make. I hope that gives you an idea. I could likely make these transforms in PHP when the “Save Draft” or “Publish” button was hit, by using a WP hook. But it would be nice to make them earlier in the process.
It’s not as important as having a programatic way to add a style map, because these things could be done later by a WP hook, whereas the style map couldn’t.