Closed GoogleCodeExporter closed 8 years ago
Best to copy/paste the HTML or have screenshots of the issue : the page @ that
URL might change, so it does not represent a good snapshot of the issue. E.g.
if you play around with it today and I look at it tomorrow, everything might
have changed and I wouldn't be able to see the bug.
It looks like the bug is that the <a> tags are not being closed. To fix:
inside the includes/SummarizePosts.php file, line 34 should read like this:
const result_tpl = '<li><a href="[+permalink+]">[+post_title+]</a></li>';
That string was missing the closing anchor tag </a>
You can either edit the code in there or you can verbosely add the formatting
string to your shortcodes, e.g. like this:
[summarize-posts post_type="portfolio" taxonomy="portfolio_category"
taxonomy_term="silos" limit="10"]
<li><a href="[+permalink+]">[+post_title+]</a></li>
[/summarize-posts]
Hope that helps.
Original comment by ever...@fireproofsocks.com
on 26 Jul 2012 at 2:02
Hi! Thanks for your help. I included this code and now it works: <li><a
href="[+permalink+]">[+post_title+]</a></li>[/summarize-posts]
But I thought the plugin would also insert the code for closing the tag
automatically. I enclose the image of the green button I get on my visual
dashboard when creating new pages (Imagen1.jpg) and the menu to make the post
selection and get the code (Imagen2.jpg)
Is that buttom provided by the CCTM plugin or does it come with Wordpress? I
think this button appeared when I installed the plugin.
Does it usually close the <a> tags? If yes, how can I fix it? Because inserting
the code you provided manually is not a good long term option.
Thanks a lot for your help. Best regards, Maria Jose Lopez
Original comment by mjlopezr...@gmail.com
on 27 Jul 2012 at 10:55
Attachments:
Hi again,
I tried to fix it inside the includes/SummarizePosts.php file, but it reads
like you say it should read:
const result_tpl = '<li><a href="[+permalink+]">[+post_title+]</a></li>';
I include a copy of the php file for you to verify.
Thanks a lot.
Maria Jose Lopez
Original comment by mjlopezr...@gmail.com
on 27 Jul 2012 at 11:29
Attachments:
The file you attached does NOT include the closing </a> tag. From line 31 in
your file:
const result_tpl = '<li><a href="[+permalink+]">[+post_title+]</li>';
Do you see? It's missing the closing </a> tag, that's why you needed to fix
it. That's the whole reason there was a bug -- yes, I SHOULD have closed that
tag, but I made a mistake. Look closely at that line please.
The green Summarize Posts icon in your screenshot is from the CCTM plugin, not
native to wordpress.
Original comment by ever...@fireproofsocks.com
on 27 Jul 2012 at 1:57
Hi! You are right, I looked closer and now I see there is a missing closing
</a> tag.
I fixed it on the php file and now it works fine. Thanks a lot for your
patience, the plugin is great!
Have a nice week-end!
Original comment by mjlopezr...@gmail.com
on 27 Jul 2012 at 2:38
Original issue reported on code.google.com by
mjlopezr...@gmail.com
on 26 Jul 2012 at 11:43