• Resolved masterhealerwp

    (@masterhealerwp)


    Hello,

    I added [y] in my post title and it is not replaced after the page is published. I only see [y] in the published page.

    Is there something that needs to be enabled or should the plugin works for post title?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author kgmservizi

    (@kgmservizi)

    Hello @masterhealerwp

    Shortcodes doesn’t work as default on title of post and page.

    If you know what you do you can add this two filters for add shortcodes on title:

    add_filter('wp_title', 'do_shortcode', 10);
    add_filter('the_title', 'do_shortcode', 10);

    Best regards

    Thread Starter masterhealerwp

    (@masterhealerwp)

    Thank you for your quick answer.
    What does 10 mean in your code snippet?

    One idea: Why don’t you add toggle button or checkbox so that your users can easily enable those options instead of adding the code into functions.php?

    By the way, I’m not a coder, like the majority of individual bloggers and professional content creators.

    Thread Starter masterhealerwp

    (@masterhealerwp)

    Also, can you please let me know how to make sure the shortcode is intertprated in the breadcrumbs?

    This is not the case by default.
    (I’m using Yoast)

    Same for:
    – the Meta Title
    – the Meta Description
    – the footer : “[y] Copyright”

    Thank you and long live your great plugin

    Thread Starter masterhealerwp

    (@masterhealerwp)

    Let me please add another one. Can you see the [y] on the image?

    I made sure you could see the source code on the screenshot for you to tell me how this can be fixed so that your plugin remains effective for global title management.

    indeed, it only makes sense to add Year shortcodes if they are applied globally and do not break anywhere.

    Thanks again.

    Plugin Author kgmservizi

    (@kgmservizi)

    Hi, these questions aren’t covered by plugin support, you need to read Codex of WordPress for understand how WordPress and shortcodes work.

    We don’t add checkbox for filters because non-developers without knowledge can not understand properly what enable filters can implicate.

    Best regards

    Thread Starter masterhealerwp

    (@masterhealerwp)

    Hi,

    Again, I’m not a coder and I don’t understand how I can use the plugin if the short code cannot be interpretated hen my theme is displaying the feature image and title automatically on my home page as shown in my previous link.

    Also, the shortcode is not interpretated in the breadcrumbs. Is there a way to do so?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @kgmservizi This topic is not a “Guideline violation” and does not need any intervention by any moderator.

    Plugin Author kgmservizi

    (@kgmservizi)

    @jdembowski sorry my fault, wrong topic.

    @masterhealerwp plugin work on place where shortcodes are supported, other things aren’t covered by this support. We can’t support customization, you need to hire a developer that can help you better.

    I think you need a specific customization that archive better your requirements.

    Best regards.

    Thread Starter masterhealerwp

    (@masterhealerwp)

    @kgmservizi thanks for your reply but as I said, I do think your plugin should update the shortcode in a consistent manner.

    I think you understood the use case:
    1. The user insert a short code in the title of his post.
    2. The title can be reused in the blog page or on the home page, in caroussel or in any other widget displaying post thumbnails or post feature images and titles.
    3. It does not make sense for a shortcode not to be interprated in one place while being in another. It just creates inconsistency and bad user experience.

    Please note that I’m sharing my honest user experience with a default theme I have not even customized. I do this to help improve the plugin to improve and help it meet the users’ needs.

    Hope you appreciate.

    Plugin Author kgmservizi

    (@kgmservizi)

    Hi @masterhealerwp

    3. It does not make sense for a shortcode not to be interprated in one place while being in another. It just creates inconsistency and bad user experience.

    This isn’t our fault, shortcodes work as WordPress core provide and the place where they work are default choice from WordPress team (and in some case from themes/plugins developers). In some place there are filter for bypass this restriction but not for all.
    Remember also that restriction are present for a reason.
    You can ask to WordPress devs for more info.

    I appreciate your opinion but as you can see it’s not our choice. Any other plugin that use shortcodes works exactly like this because it’s so planned in WordPress core (which we don’t develop).

    Best regards

    • This reply was modified 2 years ago by kgmservizi.
    Thread Starter masterhealerwp

    (@masterhealerwp)

    Thank you very much for your explanation.

    I understand them, but you also understand the use case I described, right?
    So the shortcode cannot be taken into account on the way WordPress reuse the title for carousel or others.

    Do the shortcode work in Meta Title and Meta Description?

    Best regards,

    Plugin Author kgmservizi

    (@kgmservizi)

    Hi @masterhealerwp

    Plugin work as shortcodes work, for other uses you need different plugin not based on shortcodes.
    If you need to know how shortcodes work and where they are used by WordPress, you will find everything in the details tab here on the directory plugin’s page.

    Regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugin installed and does not work’ is closed to new replies.