WordPress.org

Ready to get started?Download WordPress

Forums

Greg's High Performance SEO
Further extension for other plugins.. (5 posts)

  1. Steven Vachon
    Member
    Posted 3 years ago #

    Currently, a plugin developer can add meta, secondary title, etc to our plugin admin pages..

    What if we wanted to add custom structures to the Greg's HP SEO Configuration pages for use in only our plugins? Or, is this already possible?

  2. GregMulhauser
    Member
    Plugin Author

    Posted 3 years ago #

    I'm afraid there isn't an interface for dropping extra bits into the GHPSEO configuration pages, but you've hit on something of a pet peeve of mine (soap box time)...

    As you're no doubt aware yourself, WP currently makes it very inelegant to add plugin configuration pages at all -- that's one reason why you see so much mixed XHTML and PHP in plugin code. A cleaner way of doing this would be for plugins to provide only data structures and textual descriptions for the user, letting WP do the job of marking up everything in the admin interface. (Yes, I know that's what the WP developers say they're already doing...but one look at the mixed code required actually to achieve anything, and you know better...)

    In my own plugins (and in a few others out there), I've tried to bridge this chasm of looniness with a method enabling complete separation of data from markup, and I've personally found it speeds up development tremendously. However, extending this interface to open it up for other plugins to add to means going back to face that chasm of looniness again. I'm loathe to do that, as I keep expecting that any day now the WordPress core will be updated to enable plugin developers to interact with the admin side of things more elegantly.

    Of course, I thought something similar when I first encountered version 1.2 and saw the mixed code in theme files, and there's been very little advancement there either... There again, I develop my own themes with some bridging code that gets rid of some of that looniness, and at least one theme framework has sprung up with similar ideas in mind. But any day now, WP itself is bound to modernize in this area...isn't it...?

    All the best,
    Greg

  3. Steven Vachon
    Member
    Posted 3 years ago #

    Hmm, well you're already dropping your HTML into a plugin's writing screen. Why not let other plugins drop your HTML into the config screen?

  4. Steven Vachon
    Member
    Posted 3 years ago #

    If you are really against this idea, what about the option of creating title structures for custom post_types? You could provide a standard interface for that and wouldn't involve other HTML.

    The reason I'm so interested in this is my posts page has a title of "Blog | Steven Vachon", and a single post page has a title of "Post Title | Steven Vachon's Blog". I'm using a portfolio plugin (Simple Portfolio), and I'd like its single post pages to have a title of "Post Title | Steven Vachon's Portfolio". However, because there is no support for custom post_types, it's showing "Steven Vachon's Blog" instead.

  5. Steven Vachon
    Member
    Posted 2 years ago #

    Thank you for adding support for custom post types!

    Have you considered adding an interface for customizing titles of those types? Please read my previous message above for an example of how/why I think this is of value.

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic