• Resolved alduinwf

    (@alduinwf)


    Hello,

    thank you for that great plugin.

    But I want to ask a question:

    Is there a possibility to limit the length of the secondary title? So that an editor cannot enter more than X characters? I’d need that because I do a badge on the featured image (on archive pages) and when it gets too long, it overlaps everything.

    Yes, it would be a styling “problem” per se, but for how I’d like to use it, the better solution would be to limit the characters.

    Thank you! ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi @alduinwf,

    Please excuse the late reply.

    Yes, sure, you can limit the number of characters. However, you’d have to do that via the filter. This might result in words or even code being cut off.

    Tell me a bit more about what you’re trying to achieve and I might be able to give you a code snippet.

    Best,

    Kolja

    Thread Starter alduinwf

    (@alduinwf)

    Hi,

    the best solution would be if the editor could not even type beyond X characters, so it would not get cut (because editors never look in the frontend).
    I’m fine with using a filter. But it would have to be applied to the wp-admin. So I guess that would be a feature request then.

    I use this plugin to specify a topic. Or a snarky line of code that defines the topic further. For example:

    Secondary title: Better Safe Than Sorry
    Title: Tesla Full Self Driving Requires You To Be A Safe Driver

    And on archive pages, it creates a badge. Or a label of some sorts. That will be shown right on the featured image and well can only be as long as the image’s width. Or else it’ll look ugly. I know that is not your problem ??

    Plugin Author thaikolja

    (@thaikolja)

    Hmmm, that sounds like a lot of customization. If you’re up to it, I’m willing to do a small extension plugin that does what you want, with a couple of months of support and revisions.

    Unfortunately, since time is scarce due to my daytime job, I can’t offer this for free. However, for additions to my existing free plugins, I don’t charge much, we surely find a compromise there. If you’re up to that, let me know via [email protected].

    If not, I could only give you general information on how to approach this. Depending on your coding skills, you might even be able to do it yourself.

    Another and probably the cheapest alternative (if you use the free version) would be using ACF instead.

    Your choice ??

    Thread Starter alduinwf

    (@alduinwf)

    If I did this, would you be willing to apply my change so it would not get lost if and when there’s an update?

    Plugin Author thaikolja

    (@thaikolja)

    Did what?

    Thread Starter alduinwf

    (@alduinwf)

    Add an option which effectively adds a maxlength attribute to the secondary title in wp-admin.

    Plugin Author thaikolja

    (@thaikolja)

    By yourself? I offered you three options:

    1. I’ll do it as a paid service where you don’t have to do anything
    2. You do it according to some general guide
    3. You change to ACF

    Thread Starter alduinwf

    (@alduinwf)

    OK, and I propose a 4th option.

    I hack this option into the plugin and I ask if you would take my code then to make it “core”, so in case an update arrives, this new feature is still there and not nuked by WordPress’s auto updater.

    I’d give you a diff file or a “search for, add after”, or however you’d like.

    Plugin Author thaikolja

    (@thaikolja)

    I’m sorry, I’m not going to change the core code of the plugin that is being used by 10,000+ users for one individual feature request.

    Changing plugin files is an absolute no-go anyway in WP development.

    Why not use ACF? To me, it sounds like the perfect solution if you don’t want to spend a little fee on individual changes. It’s for free, and you could simply make a small script to copy what was previously in secondary title to the ACF field of each post.

    Thread Starter alduinwf

    (@alduinwf)

    I thank you for your support.

    Let’s leave that here, ok?

    I know changing plugin files it not an option which is why I offered to make this feature core in case you agree it could be somewhat useful. Guess you don’t. That’s fine.

    Plugin Author thaikolja

    (@thaikolja)

    I thank you for your suggestion(s). I’ll definitely keep it in my mind, maybe it will be a part of core at some point if I feel it’s needed.

    If you have any other suggestions, please let me know.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Limit length of secondary title’ is closed to new replies.