• Resolved nyoz

    (@nyoz)


    Hi !

    Before everything : THANKS SO MUCH FOR THIS LIGHTWEIGHT, UP-TO-DATE, MARVELLOUS PLUGIN ! I really mean it, I’ve just discovered it and I’m so excited about all the possibilities opened by it ! Thks a bunch !

    Here’s my “issue” :
    Basically I’m creating a website for a client. So I’m using the loop shortcode in some pages to automatically list other pages in the page content :

    <ul>[loop type="page" parent="formules" orderby="title" order="ASC"]
    	<li><a href="[content field='url']">[content field="title"]</a></li>
    [/loop]</ul>

    The problem is : my client will always use the “Text” mode of the editor, but the visual one. And by switching this to visual, it gives automatically transforms into this :

    [loop type="page" parent="formules" orderby="title" order="ASC"]
    <ul>
    	<li><a href="[content field='url']">[content field="title"]</a></li>
    </ul>
    [/loop]

    … Giving a ul for every li.
    Do you see a solution for this ?

    Totally apart from that I had a suggestion for a major new functionality : having a button into the visual editor toolbar allowing non-experienced user to create their shortcode by finding it in a list. Of course, I imagine this is quite a big function to put in place… I don’t need it myself but I think non-coder clients would maybe.

    Thanks so much for you help !

    – Nicolas

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nyoz

    (@nyoz)

    * My bad, I meant :

    My client will never use the “Text” mode

    Plugin Author Eliot Akira

    (@miyarakira)

    Thank you for the comment, I’m glad you’re finding the plugin useful.

    Yes, unfortunately, there is a common problem with the visual editor misinterpreting and destroying HTML code placed in the text editor. So far, I’ve found two ways to avoid this:

    – With the Raw HTML plugin, you can disable the visual editor on certain posts or post types. However, if the post needs to be editable by the client, this won’t be ideal.

    – Or, you can move the HTML and shortcodes outside the post editor to a custom field or a separate file, whose content is then placed into the post using [content] or [load]. Alternatively, you can use a plugin like Widgets on Pages, and move the code to a widget.

    There was another support thread recently about the visual editor issue, so I see that it’s a common problem. I’ll keep searching for a simpler solution.

    Nice idea for a button to insert shortcodes. I’ve thought about it before, and it does sound useful. To be honest, sometimes I have to look in the documentation myself to find the parameter I need, so it would be good to have a compact selectable list to generate the needed shortcodes. I’ll see if I can find the time to build the feature for a future update.

    Thread Starter nyoz

    (@nyoz)

    Thanks for the answer !
    I used your second solution (custom fields) and it works like a charm. Thanks.


    Yeah, this option would be marvellous because the parameters are so exhaustive.
    You could put it into a premium version, regarding the work it would represent ! ^^

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Views / List, Visual mode, and Shortcode button’ is closed to new replies.