Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author vaakash

    (@vaakash)

    Hi,

    Can you please post me screenshots of the following ?

    1. The page where shortcode is inserted into the title
    2. The shortcoder edit page.

    Please share the above screenshots, it will help me find out the issue.

    Thread Starter James Anderson Jr.

    (@jamesandersonjr)

    Sure.

    I’ve added the images to this public dropbox folder.

    Thread Starter James Anderson Jr.

    (@jamesandersonjr)

    But I can’t reach the actual “/about-us/” page because the server throws an error 500. If I take the shorcoder shortcode out, and replace with the “Better Font Awesome” shortcode, I don’t get that error, and can reach the page successfully, but then efficiency, and continuity is gone, because I can’t manage, and update the icon from a central location to change everywhere, at once, upon me changing my mind about which one to use.

    Plugin Author vaakash

    (@vaakash)

    @jamesandersonjr Thanks for the screenshots. I’ll check it out locally and let you know if I can give any fix.

    Thread Starter James Anderson Jr.

    (@jamesandersonjr)

    Thanks!

    Plugin Author vaakash

    (@vaakash)

    @jamesandersonjr,

    I don’t think this is a correct way to add changeable icon to post title. It affects the post’s SEO title also.

    Anyways, when I tried locally it worked for me. No issues.

    Image: https://i.snag.gy/CrTdA6.jpg

    Note that, the page title has the shortcode and this is not good.

    Also I changed my theme code like below to execute the shortcode.

    echo '<h1>' . do_shortcode(get_the_title()) . '</h1>';

    In case you want to follow above the method, please check with your theme developer if the shortcode execution is done properly in titles.

    • This reply was modified 7 years, 5 months ago by vaakash.
    Thread Starter James Anderson Jr.

    (@jamesandersonjr)

    So you didn’t use “Shortcodes Anywhere or Everywhere” like I’ve already implemented, but created a home-brew theme edit, that is going to be washed away once the theme is updated, but you marked question as resolved??

    BTW, I’m using “One Page Express” By horearadu, how am I supposed to implement your fix, if I’m not worried about SEO, because a separate plugin is handling that?

    Plugin Author vaakash

    (@vaakash)

    Please note that I followed the same in steps you mentioned in the screenshots.

    I used better Font awesome plugin, used that icon shortcoder in shortcoder and in turn used the shortcoder in page title.

    By default most themes don’t execute shortcodes in title. ( You can check it yourself by disabling all plugins in a WordPress default theme – shortcodes won’t execute on page titles. )

    In order to demonstrate that there is no issue, I had to modify WP default theme to enable execution of shortcode in page title like above.

    I’m sure that the plugin “shortcodes anywhere” is having some trouble dealing with nested shortcodes.

    Please check with that developer to get an idea if nested shortcodes are handled by it appropriately.

    Shortcoder uses native WP APIs to execute shortcode, any hacks over it by external plugin has to be checked by that plugin first.

    Thanks,
    Aakash

    Thread Starter James Anderson Jr.

    (@jamesandersonjr)

    @vaakash, Thanks for your time. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Shortcoder in Page Titles Not working!!’ is closed to new replies.