Tagged: x
-
AuthorPosts
-
July 8, 2016 at 5:00 pm #1078504
mallorcanetworksParticipantHi!
I want to list the tittles of posts of certains categories (Almost like the latest posts shortcode, but just tittles of a categorie,
It is posible?Thanks!
July 8, 2016 at 11:24 pm #1078888
Prasant RaiModeratorHello There,
Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thanks.
July 10, 2016 at 6:34 am #1080081
mallorcanetworksParticipanthi!
Yes i try to explain it better (pardon for my bad english)
I´m making a web for a wine shop, and we are adding wine info in posts (see http://www.islacatavinos.com/armas-de-guerra-blanco/)
Every wine has a category based on the brand of the wine,
What i want to do is add a shortcode (or similar) that shows all the post tittles of the selected category.I found this code, but is php, and when i add it to where i want to display this post tittles doesnt work
- <h2>Photography</h2>
-
<?php
- ” rel=”bookmark” title=”Permalink to <?php the_title(); ?>”><?php the_title(); ?>
query_posts(‘category_name=Photography&showposts=-1’); while(have_posts()) : the_post();
?><?php endwhile; ?>
I hope i made it a bit clear!
Thnankkks!July 10, 2016 at 6:35 am #1080082
mallorcanetworksParticipantupps the code is this one
<ul><li><h2>Photography</h2> <ul> <?php query_posts('category_name=Photography&showposts=-1'); while(have_posts()) : the_post(); ?> <li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> </li></ul>July 10, 2016 at 11:16 am #1080298
RupokMemberHi there,
You can try this :
<h2>Photography</h2> <ul> <?php query_posts('cat=1&showposts=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li> <?php endwhile; endif; ?> </ul>Let’s change cat=1 with proper category ID.
Cheers!
July 10, 2016 at 1:30 pm #1080383
mallorcanetworksParticipanthi!
The idea was to add this in to a accordion, and when i add it makes a bug and the acordion doesnt work, and doest show the posts, Do you know why?
The acordions are in here,
http://www.islacatavinos.com/vinos/I will be easy to create a shortcode for that action?
Thnaks!
July 10, 2016 at 8:59 pm #1080688
Rue NelModeratorHello There,
This will not work because the code is in PHP. You must create your own shortcode out of that PHP code so that you can use it inside the accordion or any element. As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.
For the meantime, please check out other 3rd party plugins that may have this feature. Perhaps this one will help:
Thank you for your understanding.
July 11, 2016 at 6:36 am #1081215
mallorcanetworksParticipanthi!
I understand it, thanks!July 11, 2016 at 7:24 am #1081262
LelyModeratorYou’re welcome!
Cheers!
- <h2>Photography</h2>
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1078504 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
