Title: Strange Nesting Issue When Using Excerpts
Last modified: August 21, 2016

---

# Strange Nesting Issue When Using Excerpts

 *  Resolved [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/)
 * I’ve discovered an odd nesting issue when using excerpts, instead of the full
   text in the tooltip. An example of the outcome can be seen here: [http://debt-collect.us/glossary/statute-of-limitations-arizona/](http://debt-collect.us/glossary/statute-of-limitations-arizona/).
   As you can see, WP Glossary is improperly extending its span to encompass considerably
   more of the page than it should.
 * Here is the code for that page:
 *     ```
       [gn_list style="time"]
       <ul>
       	<li><strong>Written Contracts</strong>: 6</li>
       	<li><strong>Oral Contracts</strong>: 3</li>
       	<li><strong>Promissory Notes</strong>: 6</li>
       	<li><strong>Open-Ended Accounts</strong>: [glossary slug='statute-of-limitations-arizona-caveat']3 or 6[/glossary]</li>
       </ul>
       [/gn_list]
   
       <br class="spacer" />
   
       <strong>§ 12-510. Exemption of state from limitations</strong>
   
       Except as provided in § 12-529, the state shall not be barred by the limitations of actions prescribed in this chapter.
   
       <br class="spacer" />
   
       <strong>§ 12-543. Oral debt; stated or open account; relief on ground of fraud or mistake; three year limitation</strong>
   
       There shall be commenced and prosecuted within three years after the cause of action accrues, and not afterward, the following actions:
       <ol class="glossary-decimal">
       	<li>For debt where the indebtedness is not evidenced by a contract in writing.</li>
       	<li>Upon stated or open accounts other than such mutual and current accounts as concern the trade of merchandise between merchant and merchant, their factors or agents, but no item of a stated or open account shall be barred so long as any item thereof has been incurred within three years immediately prior to the bringing of an action thereon.</li>
       	<li>For relief on the ground of fraud or mistake, which cause of action shall not be deemed to have accrued until the discovery by the aggrieved party of the facts constituting the fraud or mistake.</li>
       </ol>
   
       <br class="spacer" />
   
       <strong>§ 12-548. Contract in writing for debt; six year limitation; choice of law</strong>
   
       <ol class="glossary-upper-latin">
       	<li>An action for debt shall be commenced and prosecuted within six years after the cause of action accrues, and not afterward, if the indebtedness is evidenced by or founded on either of the following:</li>
       		<ol class="glossary-decimal glossary-tier-two">
       		<li>A contract in writing that is executed in this state.</li>
       		<li>A credit card as defined in § 13-2101, paragraph 3, subdivision (a).</li>
       		</ol>
       	<li>If there is a conflict between another jurisdiction and this state relating to the statute of limitations for a debt action as described in subsection A of this section, this section applies.</li>
       </ol>
       ```
   
 * When I turn off using excerpts, the issue seems to go away. I know the issue 
   is not with any of the formatting in the excerpt; here is the excerpt for the
   linked page:
 * `In Arizona, credit cards, as defined in Ariz. Rev. Stat. Ann. § 13-2101, are
   subject to a six-year statute of limitations.`
 * I am not certain if this was working properly prior to 2.4.1, as I had not nested
   things in quite this fashion before updating a few hours ago.
 * To make matters, perhaps, stranger, it seems that nesting after this fashion 
   results in even stranger results when there is no content in the same element
   as the WP Glossary entries after those entries. The code for this page: [http://debt-collect.us/2013/06/test-post-ii/](http://debt-collect.us/2013/06/test-post-ii/),
   is as follows:
 *     ```
       <ul>
       	<li>[glossary slug='statute-of-limitations-arizona' /]</li>
       	<li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li>
       	<li>[glossary slug='statute-of-limitations-alaska' /]</li>
       	<li>[glossary slug='statute-of-limitations-alabama' /]</li>
       </ul>
   
       [gn_tabs style="1"]
       [gn_tab][glossary slug='statute-of-limitations-arizona' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-arizona-caveat' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-alaska' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-alabama' /][/gn_tab]
       [/gn_tabs]
   
       [gn_list style="time"]
       <ul>
       	<li>[glossary slug='statute-of-limitations-arizona' /]</li>
       	<li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li>
       	<li>[glossary slug='statute-of-limitations-alaska' /]</li>
       	<li>[glossary slug='statute-of-limitations-alabama' /]</li>
       </ul>
       [/gn_list]
   
       [gn_tabs style="1"]
       [gn_tab][glossary slug='statute-of-limitations-arizona' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-arizona-caveat' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-alaska' /][/gn_tab]
       [gn_tab][glossary slug='statute-of-limitations-alabama' /][/gn_tab]
       [/gn_tabs]
       ```
   
 * What makes this stranger, and convinces me that the issue lies with WP Glossary
   and not Shortcodes Ultimate or some other plugin running on the site, is the 
   following page: [http://debt-collect.us/2013/06/test-post-iii/](http://debt-collect.us/2013/06/test-post-iii/),
   which has the following code:
 *     ```
       <ul>
       	<li>[glossary slug='statute-of-limitations-arizona' /]</li>
       	<li>[glossary slug='statute-of-limitations-arizona-caveat' /]</li>
       	<li>[glossary slug='statute-of-limitations-alaska' /]</li>
       	<li>[glossary slug='statute-of-limitations-alabama' /]</li>
       </ul>
   
       [glossary slug='statute-of-limitations-arizona' /]
       [glossary slug='statute-of-limitations-arizona-caveat' /]
       [glossary slug='statute-of-limitations-alaska' /]
       [glossary slug='statute-of-limitations-alabama' /]
   
       [glossary slug='statute-of-limitations-arizona']Arizona[/glossary]
       [glossary slug='statute-of-limitations-arizona-caveat']Arizona-Caveat[/glossary]
       [glossary slug='statute-of-limitations-alaska']Alaska[/glossary]
       [glossary slug='statute-of-limitations-alabama']Alabama[/glossary]
       ```
   
 * As you can see, the WP Glossary entries are not functioning as expected even 
   when they are the only content on the page.
 * For the sake of thoroughness, the issue persists even when lists are not used
   in the code: [http://debt-collect.us/2013/06/test-post-iv/](http://debt-collect.us/2013/06/test-post-iv/).
 * Please let me know if any additional troubleshooting steps would be helpful.
 * [http://wordpress.org/extend/plugins/wp-glossary/](http://wordpress.org/extend/plugins/wp-glossary/)

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

 *  Plugin Author [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * (@tcbarrett)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823802)
 * Hi Zyniker
 * What are your glossary option settings?
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823819)
 * The settings for this install are as follows:
    1. Tooltip: Excerpt
    2. Archive: Standard
    3. Tooltip (qTip): Light
    4. Term link: Normal
    5. Term usage: On
 * [http://cl.ly/image/3h2N1e2u1P03](http://cl.ly/image/3h2N1e2u1P03)
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823900)
 * I believe I may have discovered what is causing the issue. It looked like the
   title which is generated for the hover `<a>` element is being closed with a ”
   instead of a ” (i.e., with curled instead of straight quotation marks). This 
   is causing the element not to close and the remainder of the page below the `
   <a>` element to render improperly. I am not certain what is causing this behaviour.
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823901)
 * It is definitely an issue caused by embedding one glossary term within another
   glossary term. Here is another example: [http://debt-collect.us/glossary/statute-of-limitations-georgia/](http://debt-collect.us/glossary/statute-of-limitations-georgia/).
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823902)
 * I’ve turned off the tooltips for now (as they were actually mangling the code
   of another page on which they were used [i.e., [http://debt-collect.us/statutes-laws/statutes-of-limitations/%5D](http://debt-collect.us/statutes-laws/statutes-of-limitations/%5D)).
   Let me know if you’d like them turned back on to take a look at the code.
 * It is likely worth noting that, when I looked through the code of the aforementioned
   page, it was rendering improperly due to the same issue (i.e., the curly instead
   straight quotation marks); interestingly, these were encoded instead of just 
   raw characters.
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823903)
 * Well, it seems the issue lies in the excerpts being encoded instead of processed
   as HTML. When the plugin pulls the excerpt, it is encoding < into `<` and > into`
   >`. Fortunately, encoding those characters doesn’t seem to make much of any difference(
   though it still seems like unexpected and unwanted behaviour); unfortunately,
   however, encoding the `”` into ” does make a difference (further, it seems like
   this shouldn’t be ” but should rather be `"` [i.e., `"`; aka 0x22]).
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823904)
 * Apparently WordPress’s editor is determined to turn the character codes into 
   the characters regardless of how I mark them. So:
 * < = & lt ;
    > = & gt ; ” = & #8221 ; ” = & quot ;
 *  Plugin Author [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * (@tcbarrett)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823944)
 * How does it look with the latest version?
 *  Thread Starter [Zyniker](https://wordpress.org/support/users/zyniker/)
 * (@zyniker)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823945)
 * Everything seems to be working with the most recent version (i.e., v3.0). I’ll
   mark this thread as resolved.

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

The topic ‘Strange Nesting Issue When Using Excerpts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-glossary_5d5449.svg)
 * [WP Glossary](https://wordpress.org/plugins/wp-glossary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-glossary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-glossary/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-glossary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-glossary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-glossary/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Zyniker](https://wordpress.org/support/users/zyniker/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/strange-nesting-issue-when-using-excerpts/#post-3823945)
 * Status: resolved