• Hi,

    I’m having an issue with quotation marks in shortcode links.

    I require some titles to be in quotation marks, basically like this:

    [yadawiki link=”This Is a Title” show=””This Is a Title””]

    Now I know there can be issues when it comes to quotation marks within quotation marks and mixing them in shortcodes.

    So I tried this:

    [yadawiki link=’This Is a Title’ show='”This Is a Title”‘]

    And even this:

    [yadawiki link=”This Is a Title” show=”‘This Is a Title'”]

    However none of that is working, ‘show’ will be ignored entirely.

    Is this a bug, and what would be the best way to achieve this in Yada Wiki? I would like to avoid using HTML in order to keep it user friendly.

    Thanks much.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter jfbprivate

    (@jfbprivate)

    Trying to summarize it one last time:

    The actual page title:

    <em>This Is a Title</em>

    The page link in body copy (using the regular link without HTML will work just fine):

    [yadawiki link="This Is a Title"]

    The page link in the TOC page (the HTML bit needs to be included or the page won’t be recognized):

    [yadawiki link="<em>This Is a Title</em>"]

    All index pages will display the italicized page titles correctly.

    The issue with tables:

    Links to a page with an italicized title (<em>This Is a Title</em>) will not be recognized when placed inside tables. Neither this ([yadawiki link=”This Is a Title”]) nor this ([yadawiki link=”<em>This Is a Title</em>”]) will work.

    This is NOT about DISPLAYING them italicized as in your last example. The problem is that they’re not being recognized as pages in tables in the first place.

    Plugin Author dmccan

    (@dmccan)

    Thank you for clarifying about the page title. I was thinking that was within the shortcode only. I didn’t realize you were actually giving pages a name with ems in the title. For what it is worth, that as a practice doesn’t seem good to me and I think people would advise using CSS to style the actual page title.

    In any event, I created a page with ems in the title and the reason why when you include that page in a wiki shortcode (without the extra ems) is that the actual page title is with ems, if that makes sense. So that is why manually adding them into the wiki tag you get a working link on the frontend.

    I created a page with ems in the title, and then a wiki shortcode to that page with the ems manually added in. That worked fine on the front, and in the toc, index page, and category list.

    I created another page with ems in the title, and then a wiki shortcode to that page with the ems manually added in. I then switched to the text editor and pasted in the table code from above, but without the shortcode and instead just added a word in its place. I switched back to the visual editor and copied the shortcode with the link to the page with the ems as a title and with the ems added manually, switched back to the text editor and pasted that in. Saved. When viewing that on the frontend the table showed, the wiki link showed italicized, and the link worked. Perhaps you are generating your tables somehow that is playing a role.

    Thread Starter jfbprivate

    (@jfbprivate)

    Thanks for getting back.

    I wouldn’t necessarily call it bad practice as it is also the only way to do it in WordPress, and publishers actually do use it that way. Just a random example:

    'Sad' Keanu Reeves Memes Aren't Accurate, Says <em>John Wick</em> Director: He's an 'Incredibly Positive Guy' (Exclusive)

    Looking up albums in Wikipedia you’ll notice that they’re italicized using <i>. Example:

    <i>Songs in the Key of Life</i>

    As for the CSS method: Of course I can style all page titles using CSS, but not all page titles are supposed to be italicized — only actual titles (see above example). So that’s not a solution either as that method would affect all titles.

    Again, I can work around most as described in my earlier post, but in tables, page titles that include HTML are being ignored and won’t generate a wiki link which is a knock-out criterion.

    So, if that can’t be fixed, I will have to roll back and live with the fact I won’t be able to display titles the correct way.

    I hope this clarifies it.

    Thank you again.

Viewing 3 replies - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.