Shortcode output formatting question
-
Hi!
I’m looking to use the shortcode to insert the popular pages and posts in a page. It’s not formatting on the page as I’d like though.
I currently use this;
Popular pages this month
[slimstat f='top' w='post_link']limit_results equals 10[/slimstat]
Popular blog posts this month
[slimstat f='top' w='resource']content_type equals post&&&limit_results equals 10[/slimstat]
Which produces;
Popular pages this month
<ul class="slimstat-shortcode toppost_link"> <li><span class="col-post_link"><a href="/somepage/">Some Page</a></span></li> ...etc... </ul> </div>
Popular blog posts this month
<ul class="slimstat-shortcode topresource"> <li><span class="col-resource">/2015/12/some-blog-post/</span></li> ...etc... </ul>
So the shortcode using the post_link dimension makes a link with the page title, but the second using the resource dimension just puts the relative URL on the page which is obviously not helpful.
Have I missed something obvious in how I should be doing this?
Thanks
- The topic ‘Shortcode output formatting question’ is closed to new replies.