php - Generated posts from Wordpress-Plugin show empty links in menu -


My colleague and I'm working on the WordPress plugin which generates a post using a custom post type. By the time you do not see the posts, all this work is fine. Generated pages look good and Themes use single.php template. The only problem is that the menus that work on all other pages of the site on the pages generated by the plugin are empty. By emptying I mean that there is a structure with links, just go to & lt; A & gt; The text inside the tag.

The generated menu on the post generated by the plugin looks like this

  & lt; Nav id = "primary-navigation" category = "site navigation primary-navigation" role = "navigation" & gt; & Lt; Div class = "nav-menu" & gt; & Lt; Ul & gt; & Lt; Li class = "page_image page-item -1763" & gt; & Lt; A href = "? Page_ id = 1763" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "page_item page-item -1761" & gt; & Lt; A href = "? Page_ id = 1761" & gt; & Lt; / A & gt; & Lt; / Li & gt; [...] & lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Neo & gt;  

For all other pages, the menu looks like this:

  & lt; Nav id = "primary-navigation" class = "site navigation primary-navigation" role = "navigation" & gt; & Lt; Div class = "nav-menu" & gt; & Lt; Ul & gt; & Lt; Li class = "page_image page-item -1763" & gt; & Lt; A href = "? Page_ id = 1763" & gt; About & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "page_item page-item -1761" & gt; & Lt; A href = "? Page_ id = 1761" & gt; Gallery & lt; / A & gt; & Lt; / Li & gt; [...] & lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Neo & gt;  

As you can see, the only difference is that & lt; A & gt; and & lt; / A & gt; There is no text between tag, which makes the menu unusable.

We do not really know how to make this problem in the plug-in / custom-post type, because we used to try to do it with different subjects, and they all behaved the same So - this is not an issue with the subject.

Any comment or sign that indicates in the right direction is appreciated.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -