Title: Views / List, Visual mode, and Shortcode button
Last modified: August 21, 2016

---

# Views / List, Visual mode, and Shortcode button

 *  Resolved [nyoz](https://wordpress.org/support/users/nyoz/)
 * (@nyoz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/views-list-visual-mode-and-shortcode-button/)
 * 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://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

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

 *  Thread Starter [nyoz](https://wordpress.org/support/users/nyoz/)
 * (@nyoz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/views-list-visual-mode-and-shortcode-button/#post-5020896)
 * * My bad, I meant :
 * > My client will **never** use the “Text” mode
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/views-list-visual-mode-and-shortcode-button/#post-5020996)
 * 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](http://wordpress.org/plugins/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](http://wordpress.org/plugins/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](https://wordpress.org/support/users/nyoz/)
 * (@nyoz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/views-list-visual-mode-and-shortcode-button/#post-5020997)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

 * [list](https://wordpress.org/support/topic-tag/list/)
 * [views](https://wordpress.org/support/topic-tag/views/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * 3 replies
 * 2 participants
 * Last reply from: [nyoz](https://wordpress.org/support/users/nyoz/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/views-list-visual-mode-and-shortcode-button/#post-5020997)
 * Status: resolved