Tag Info

Hot answers tagged

3

Have you tried replacing get_thumbnail with: <a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_post_thumbnail(); ?></a>


2

To get multiple categories working on List Category Posts, you need to separate them by comma like this: [catlist id=1,2] for Category ID, and [catlist name='Audi,Cadillac'] for Category Name. Please note that multiple categories for the name parameter was just added on version 0.20.5.


2

Not sure but i think you don't need to use commas , so try [catlist name=member-directory orderby=title order=ASC numberposts=-1]


2

Yes, I've asked for issues to be reported here, so that you can get answers from the larger community of WordPress users and developers at WordPress Answers. Regarding the issue, other user also reported it, and it is due to the webhost using PHP 4. Line 10 of CatListDisplayer.php declares a private attribute. PHP 4 doesn't have public, private or protected ...


2

Its a great plugin and i believe the developer is a member here. To use it simply create a new page and use the plugin's shortcode [catlist id=1] change 1 with the actual category id. to read more about its features and ways you can use it : http://foro.picandocodigo.net/discussion/251/list-category-posts-documentation/ and to use the plugins advanced ...


2

You have two conflicting parameters in your shortcode: categorypage - Set it to "yes" if you want to list the posts from the current post's category. And id - To display posts from a category using the category's id. Ex: [catlist id=24]. You can include several categories: Ex: [catlist id=17,24,32] or exclude a category with the minus (-)


2

While Xufyan's answer will get the job done, it does cause your page loads to run an extra query and you might get some unpredictable behavior. Furthermore, it doesn't get to the root of your issue. If you're comfortable with PHP, open up your theme's functions.php file and enter this: add_filter('request', 'order_posts_by_title', 999 ); function ...


2

This plugin does allow theming. Check out the "Other Notes" tab in the plugin page. As far as making it sortable, your path of least resistance is to use javascript. Here's a jQuery plugin that will do (almost) all the work for you. Hope that helps! Cheers~


2

To format the overall list container use the class paramater: class - CSS class for the default UL generated by the plugin. Also, you can change the generated code to a div if you pass the parameter "div" to "template": [catlist template=div class=mygallerytheme] This will create something like: <div class="mygallerytheme"> <p>Post ...


2

after a whole night of googling and test runs, I've resolved the matter by using List Category Posts' template. all I did was create another template (from the one provided by plugin) in a folder inside my theme's directory. Then i go in and edit the code by placing the show thumnail codes on top of the title codes, and Viola!, works like a charm. thanks ...


1

You can use get_post_meta(). This is the codex article: http://codex.wordpress.org/Function_Reference/get_post_meta It sounds like each of the custom field values you want to display would only contain one result (one country, one town etc). In that case you'd use something like this in your template, wherever you want to display the value: <?php if ( ...


1

Hey you just opened the plugin's tag on WordPress Answers :D Can you paste the code of the generated html? From what you describe, you are using it correctly, so I just want to see if the template is being loaded to detect if the problem is on the template side, or a bug on the plugin's code. UPDATE: Ok, I checked your template on a new WordPress install. ...


1

As Michael mentions in the comments, you can use the shortcode in a post or page to do the same the widget does: [catlist argument1=value1 argument2=value2] Please, people, read the README file on plugins. We developers take the time to write it so you can use our plugins. First rule of installing a new WordPress Plugin is read the documentation. Second ...


1

I found a hint towards the solution exactly where you advised me. I think the solution was a bit outdated, but with a bit of digging, I made the following change: in file include/CartListDisplayer.php, in function get_post_title() I added the following code in first line before anything else: if ( function_exists( ...


1

strangely familiar to this, but it is different, so here's a modified version add_filter( 'post_link', 'remove_parent_cats_from_link', 10, 3 ); function remove_parent_cats_from_link( $permalink, $post, $leavename ){ $cats = get_the_category( $post->ID ); if ( $cats ) { // Make sure we use the same start cat as the permalink generator ...


1

according to the list of supported parameters you can possibly use it with a custom post type by setting post_type to any, but it doesn't appear to support custom taxonomies.


1

You need to have 'excerpt' => 'yes', 'excerpt_size' => '100', 'content' => 'no' ... when get_excerpt runs. You can set $params like that but what you posted is not all of the code. It is using $this which means it is part of a class (or you'd get errors). Somewhere in that class something might be altering the defaults, and I suspect something ...


1

You can use these shortcodes: This will show posts that are in Categories 17 AND 25 AND 2 [catlist id=17+25+2] OR This will include post that are from any of categories 17 OR 24 OR 32 [catlist id=17,24,32] You can also us catlist name in the same way: [catlist name=sega+nintendo] [catlist name=sega,nintendo] I have it in use on my site ...


1

I'm assuming this is the plugin: http://wordpress.org/plugins/list-category-posts/? You can use jquery to make all the .lcp_catlist links open in a new window - add this code to your footer: <script type="text/javascript"> jQuery(function(){ jQuery('.lcp_catlist li a').prop('target', '_blank'); }); </script>


1

Since version 0.23 of the List Category Posts plugin, you can set specific html tags and CSS for each element of the list. In you case you would do something like this: title_tag=span title_class=lcp_post title This will look like this in your page: <li> <span class="lcp_post_title"> <a ...


1

You should be able to do it with only a CSS modification: .lcp_catlist a { text-decoration: underline; }


1

You could enable links, images and other tags for use with the_excerpt. This might be the most simple solution, but it will apply to all excerpts: <?php function my_excerpt_custom($text) { $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content(''); $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); ...


1

I'm not quite sure why your template changes aren't taking -- it looks like you're doing what you should. If you'd like to fix the problem via CSS, adding these rules to your styles.css file would make that page look nice: .lcp_catlist li { margin: 0; list-style: none; } .lcp_catlist li img { margin: 5px 10px; float: left; }


1

It uses the get_the_post_thumbnail function: Gets Post Thumbnail as set in post's or page's edit screen and returns an HTML image element representing a Post Thumbnail, if there is any, otherwise an empty string. The other options you mention are not included in the plugin now, but they will be considered for future versions.


1

to enable shortcode in textwidgets, add this to functions.php of your theme: add_filter('widget_text', 'do_shortcode');


1

inside the loop, after your excerpt you can place a the following: <a href="<?php the_permalink(); ?>">more</a>


1

Actually, I should include this as an option on the plugin. Right now the code looks like this: $info = '<a href="' . get_permalink($single->ID).'" >' . $single->post_title . '</a>'; So this generates a simple link: <a href="yourpost.html">Post Title</a> I'll see what I can do on a next version to make this customizable, ...


1

I believe so. I think this is the plugin you're using: https://github.com/picandocodigo/List-Category-Posts The doc says you can use excludeposts, so you'd use: [catlist categorypage=yes post_type=page excludeposts=<ID_OF_PAGE>]


1

If you want to do this for every link from List Category Posts, you can add this to your theme's css file: .lcp_catlist a { text-decoration: underline; } Check this answer for more details on new features that can help you customize even more: Since version 0.23 of the List Category Posts plugin, you can set specific html tags and CSS for each ...


1

please either post the URL or look at page source and post the actual html code so that we can see the markup



Only top voted, non community-wiki answers of a minimum length are eligible