• Resolved Dan Butcher

    (@danbutcher)


    My theme was messing up because it was using get_the_title in a template to return the title as part of a social sharing function. I changed this to the_title_attribute and now the sharing works, but the social sharing shows both the title and subtitle as the title.

    For sharing on FB, Twitter, etc, I would prefer that only the actual title is pulled. What wp function should I use instead of the_title_attribute to get only the post title?

    https://ww.wp.xz.cn/plugins/subtitles/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    This is a really good question. Let me think about this and get back to you today Dan!

    Cheers,
    Philip

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Sorry for the delay on this Dan. Still mulling it over. I should have an update for you soon!

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Dan,

    I just remembered that this came up a while back. Give that a read and if you have anything to add, please comment directly on GitHub and we’ll go from there. Thank you so much for your patience. I had to think about this and realized that it had some up before.

    Cheers,
    Philip

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘function to return only title without subtitle’ is closed to new replies.