GithubHelp home page GithubHelp logo

picandocodigo / list-category-posts Goto Github PK

View Code? Open in Web Editor NEW
240.0 24.0 112.0 1.42 MB

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.

Home Page: http://wordpress.org/extend/plugins/list-category-posts/

License: GNU General Public License v2.0

Shell 4.93% PHP 95.02% CSS 0.05%
wordpress php wordpress-plugin

list-category-posts's Introduction

List Category Posts

Code Climate Tests

List Category Posts is a WordPress plugin that allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments.

Usage: [catlist argument1=value1 argument2=value2]

Please visit the plugin's page on WordPress.org to find out more.

Documentation

The main documentation is hosted in the GitHub Wiki. You can find information there on how to select which posts to show, pagination, HTML & CSS customization and the template system and the several parameters you can use.

Would you like to help with the development?

The evolution of this plugin wouldn't be possible without the help of these awesome contributors. Special thanks to Sophist, bibz, vacuus, klemens-st for their contributions and hard work and every other person who's contributed to this plugin:+1:

Sometimes Pull Request take a while for us to review, but we'll eventually get to all of them. If you open a PR, feel free to add your wordpress.org user so if it gets merged I can add you to the list of contributors in the plugin's readme file.

Development

A Vagrantfile is provided to set up a box for WordPress development. You need Vagrant installed on your computer.

Fork the repo, clone it locally and do vagrant up (on Windows you need to run this command in PowerShell as administrator). You'll have a WordPress instance running on http://127.0.0.1:8080/.

WordPress is installed with this information:

  • Database Name: wordpress
  • User Name: wordpressuser
  • Password: wordpresspass

You can access the admin dashboard with the following credentials:

  • Admin user: adminuser
  • Admin password: adminpass

Activate the plugin on http://localhost:8080/wp-admin/plugins.php

The plugin code is linked directly on the box, so any change you make on the code is reflected automatically on the Vagrant box's WordPress installation.

Testing

PHPUnit has been set up by bibz, you can run phpunit on the Virtual Machine:

vagrant@vagrant-ubuntu-precise-32:/vagrant$ phpunit
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 4.7.3 by Sebastian Bergmann and contributors.

.

Time: 3.11 seconds, Memory: 46.25Mb

OK (1 test, 12 assertions)

The code needs lots of refactoring and probably some more documentation to be able to write some more relevant tests. This is a task where you can really help the development of the plugin if you're interested in contributing.

Usage

[catlist argument1=value1 argument2=value2]

Support the plugin

If you've found the plugin useful, consider buying us a beverage :)

License

GPLv2

List Category Posts

Copyright (C) 2008-2020  Fernando Briano (email : [email protected])

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

list-category-posts's People

Contributors

arcticmouse avatar aurodigo avatar bibz avatar calcimicium avatar cfoellmann avatar daltonrooney avatar djalondon avatar ericsandine avatar htrex avatar hvianna avatar itpcc avatar jremes-foss avatar kenshin23 avatar klemens-st avatar likemusic avatar loganyott avatar mattheweppelsheimer avatar mhoeher avatar mmatthews1981 avatar nikolausdemmel avatar nnasirzada avatar nuss avatar oloz17 avatar ottadvantage avatar picandocodigo avatar shesek avatar sophist-uk avatar stefanxroos avatar vosykapavel avatar zulkamal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

list-category-posts's Issues

Warnings on WP-DEBUG - true

Check indices to avoid debug errors:

Notice: Undefined index: title_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 104

Notice: Undefined index: title_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 105

Notice: Undefined index: comments_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 107

Notice: Undefined index: comments_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 108

Notice: Undefined index: date_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 111

Notice: Undefined index: date_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 112

Notice: Undefined index: author_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 115

Notice: Undefined index: author_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 116

Notice: Undefined index: content_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: content_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: excerpt_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: excerpt_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: title_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 104

Notice: Undefined index: title_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 105

Notice: Undefined index: comments_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 107

Notice: Undefined index: comments_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 108

Notice: Undefined index: date_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 111

Notice: Undefined index: date_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 112

Notice: Undefined index: author_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 115

Notice: Undefined index: author_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 116

Notice: Undefined index: content_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: content_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: excerpt_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: excerpt_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: title_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 104

Notice: Undefined index: title_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 105

Notice: Undefined index: comments_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 107

Notice: Undefined index: comments_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 108

Notice: Undefined index: date_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 111

Notice: Undefined index: date_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 112

Notice: Undefined index: author_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 115

Notice: Undefined index: author_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 116

Notice: Undefined index: content_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: content_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: excerpt_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: excerpt_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: title_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 104

Notice: Undefined index: title_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 105

Notice: Undefined index: comments_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 107

Notice: Undefined index: comments_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 108

Notice: Undefined index: date_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 111

Notice: Undefined index: date_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 112

Notice: Undefined index: author_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 115

Notice: Undefined index: author_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 116

Notice: Undefined index: content_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: content_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: excerpt_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: excerpt_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: title_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 104

Notice: Undefined index: title_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 105

Notice: Undefined index: comments_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 107

Notice: Undefined index: comments_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 108

Notice: Undefined index: date_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 111

Notice: Undefined index: date_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 112

Notice: Undefined index: author_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 115

Notice: Undefined index: author_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 116

Notice: Undefined index: content_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: content_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 126

Notice: Undefined index: excerpt_tag in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128

Notice: Undefined index: excerpt_class in /home/fernando/public_html/wp-content/plugins/list-category-posts/include/CatListDisplayer.php on line 128```

All other posts also displaying

Hello,

I only want the 2 posts with "about us" tags to display.

However, all of my posts are displaying under my "about us" page.

my blog: www.blog,pieceofchic.net

I've used the correct code and I have even tried using category names as well as the category numbers.

Can you please advise on how to fix this issue?

first 5 posts show in catagory listen when using the cat list code

I can't remember if this issue got submitted by me yesterday as I never got a confirmation but here it is again.
The first 5 posts no matter what you do with the cat list short code only shows the first 5 posts in that catigory. Here is a page with a lot of examples.

http://tffppodcast.com/cc

when you click on one of the posts, then the catagory, you can see more then 5 posts especially in the first example as it exceeds 5 posts. This brakes no matter what theme I'm using but I am usign the latest wordpress 3.5.1.

Thanks.

Only lists 5 posts from a category

Using the basic shortcode on a page [catlist id=4] only shows 5 posts on the page, when there are over 10 posts in that category. I'm not seeing any PHP errors with WP_DEBUG turned on. Any ideas?

About more link.

Because of the design of my website,I'd like to customized the location and class of the 'more link'.So what part of the source code defined the location and class of the 'more link'?

All other posts also displaying

here is the problem I am facing:

I have pages A, B , C

three categories cat1, cat2, cat3 with id=1,2,3 respectively

now suppose I want Page A to display posts from cat1 only..so I added [catlist id=1] shortcode to Page A but when I had a look at page A..it was displaying posts from cat1 at the top followed by al other posts from other categories i.e. cat2, cat3

Is this a bug? I can't seem to figure out. I want only to display posts from specific category in a particular page!

Also, the posts also display on the homepage but don't want the post to be displayed there just in the specific category on particular page!

so I have 2 issues, first one being more important when all posts from all categories are displayed regardless

After update plugin doesn't work

Plugin was working fine until I updated. Now the page seems to break and nothing is displayed.

I am using
[catlist ID=11 excerpt=yes template=default numberposts=-1  orderby=modified]

If I remove "excerpt=yes" then it'll show "read more" links. Otherwise it is completely dead. I am using this plugin on another page as well and if there are no items in the category the page will display fine, if there are items in the category then the page breaks completely.

You can see what I mean here
excerptYesRemoved
pageWithNoCategoriesInside
brokenPage

Ability to exclude tags

Currently, being able to exclude a tag does not seem to be possible. I hope you will consider adding this feature in the near future. It would make the plugin perfect for all my needs!
Thanks. :)

Thumbnail doesn't show on frontpage

Hello,

for some reason my thumbnails doesn't show when I run the script to show List-Category-Posts on the front page. What's funny is that it has worked up until a while ago when the images suddenly didn't load anymore

?!?

The same script works on blog posts though.

Anyone expreienced this and got a suggestion what to do?

Thanks
Johannes

Exclude category/tag not working

The exclude parameter doesn't seem to be working at all.

If I understand it correctly, it is supposed to work such that if post X is assigned to both category A and category B, and I use [catlist name="A, -B"] the output should not include post X.

I've tried quotation marks and no quotation marks, spaces after the comma and no spaces, so I don't think it is a formatting problem.

Change width of list items

I used the plugin "List category posts" to make a menu for each category. The posts and post thumbnails are aligned vertically. Now if a Post title is very long the layout get's all messy so i want to set a max width for every li trough CSS. I allready tried:

max-width: 70px;
and
width: 70px;

but both off then didn't work for me. I also searched every PHP file that comes with the plugin. I hope someone can help me

My website

Add padding

I would like to add some padding between the last listing and the "More link" in the sidebar widget. Can anyone advise on how I can do this?

Thanks.

post-status

Would it be possible to include a method of selecting posts by their status? I have posts that have a status of future or publish and it would be good to select posts depending on that status. For example, future concerts (status=future) and past concerts (status=publish or no status parameter so no future posts selected - like now!).

Custom field without name

Output just 'Custom field value' or at least 'Custom field name' : 'Custom field value' so we can hide the name by CSS.

custom fields values don't show in my list

Hello,
I'm using the Plugin List Category to show a list of posts and I use it with the parameters:
[catlist name=talleres thumbnail=yes thumbnail_size=52,52 excerpt=yes customfield_display=featured]
I have value for this custom field but for some reason it doesn't show on the page.
I tried with different parameters, still nothing. do I have the syntax wrong or something?
any help will be greatly appreciated, i've been struggling with this for few days now.
thanks a lot in advance.

Can't get the plugin to work

I love the idea of this plugin. I have a webpage where I am trying to keep a "News" blog and a "Technology" blog on two separate pages. According to the description of this plugin on Wordpress.org, List-Category-Post will do just that. However, I am having some difficulty getting the short codes to work correctly.

Here's the screen of my page that I'm trying to list ONLY one category called "Available Technologies" and for some reason that page isn't picking up just that category.

http://cl.ly/image/0R0z0Z3Q111o

Any thoughts would be helpful.

Plugin doesn't work under some circumstances

If I use the plugin and create a page that lists only one specific category using:

[catlist id=1 content=yes]

then it works just fine.

But if I set that particular page as a startpage under settings\read then all posts are listed regardsless of the selected category!

But that's what I need: To get my startpage tp list posts from ONE specific category - not all...

allow shortcodes to work in excerpts

Hello,

Any chance there's something we can do to make shortcodes load in the excerpts?

I love that your plug-in loads excerpts, but it only shows text and html. I tried using a shortcode in my excerpt and nothing showed.

My intent is to have my product "add-to-cart" shortcodes in the excerpts.

Thanks!

Title Does Not Align

issue

URL:
http://theblackburger.com/foodies-2/

[catlist name=foodies author=no thumbnail=yes thumbnail_class=shrtthumb orderby=date order=ASC excerpt=yes title_tag=h1 author_tag=strong]

.shrtthumb{float:left; margin:5px 10px 10px 10px; width:100px; height:100px; vertical-align:text-top;}

Just to let you know that there is an issue with the plugin, title randomly goes out of alignment.

Tag listing?

Hi, is there a way that I can have a tag show up right before the title in the sidebar widget?

IE: I tag a news post as "billboard magazine" and the title is:

"Backstage at MuchMusic Video Awards"

but it would show up in the sidebar widget as:

"Billboard Magazine: Backstage at MuchMusic Video Awards"

Feature-Request: Use ordered lists with an optional start number

It would be nice to use ordered (numbered) lists (<ol> tag instead of <ul>) with the option to specify a start number: <ol start="50">

The syntax could be (this is only an example):

  • [catlist … ol=0] as default, 0 means off: use <ul> tag like in previous versions
  • [catlist … ol=1] uses now ordered lists with a start number of 1: <ol start="1">
  • [catlist … ol=50] uses now ordered lists with a start number of 50: <ol start="50">

Thank you
McPringle

Problem in using "Read more" for next page

  1. The plugin is a very useful,detailed, handy & wonderful plugin.
  2. When using "read more" , the first screen page is fine. But on the next screen page, it looses order, starts showing posts as entered & starts repeating posts and forgets all instructions.
    using shortcode
    [catlist id=4540 thumbnails=yes numberposts=10 tags=delhi categorypage=yes content=yes date=no orderby=title order=asc morelink="Read more"]
    in website
    http://www.usefulyellowpages.com

The result is all posts with tag=delhi are shown O.k in alpha order
After clicking Read more, alpha order is lost, tags are lost, numberposts=10 are lost, and starts showing all posts as entered.

  1. Addition of Pagination will be a very useful feature.

Thanks

Can someone help show me how?

I want to have these category posts show up not like the second posts1
but like the first. I am a newbie so any help would be greatly appreciated. i have tried the templates deal but the the whole page goes all crazy messed up.
posts2

widget excerpt not showing

in the widget the excerpt is not showing because the excerpt_size ist not in the params array, i made a fix i adding a default value, but its quity dirty. It would be nice to select the excerpt_size in the widget settings...thx

Custom thumbnail size

I need to use a custom image size for my thumbnails. Supporting custom thumbnail sizes appears to be an easy fix. Of course I might be missing something.

In the get_thumbnail function the thumbnail_size parameter is being checked against this array: array('thumbnail', 'medium', 'large', 'full').

To support custom image sizes we need to find out the available sizes so we can use this array: $avalaible_image_sizes = get_intermediate_image_sizes();

So the final code is:
$avalaible_image_sizes = get_intermediate_image_sizes();
if ( has_post_thumbnail($single->ID) ):
if ( in_array( $this->params['thumbnail_size'],$avalaible_image_sizes )):
$lcp_thumb_size = $this->params['thumbnail_size'];

Parameter Reference

Perhaps this is just an oversight, but like with any plugin, having a link to a "How-to Use" page would be nice.
In the case of this particular plugin, it'd be nice to have a link (perhaps in the plugins page with Activate/Deactivate/etc. links) that links to your Other Notes reference at http://wordpress.org/extend/plugins/list-category-posts/other_notes/ or create an admin page view for it.

Since it's not every day someone will use this, a few months later might leave one completely clueless how it worked....

Thanks for this plugin!!

Widget: Order By Cannot be Changed

Hi,

If I put up the widget, there is an option "Order by" (which I select to "Post title") and "Order" (which I select to "Ascending"). When I hit save, both options go back to their original value (Date and Descending).

Thanks for this simple but awesome plugin!

Best
Vlad

Wrap first post with different class than the rest

First of all, great plugin, I love the many customization options.

I've run into some difficulty trying to create a new template based on the default. The end result I'm shooting for is the ability to style the first post listed differently than all the others (e.g., I want the first post's headline to be larger font size and to show the thumbnail, while the rest just display the headline). This is the code I'm trying:

foreach ($this->catlist->get_categories_posts() as $single):

    if ($postcount==1) {
        $lcp_display_output .= "<li class="first">";
        }
    else{
        $lcp_display_output .= "<li class="normal">";
        }

I suspect I'm missing something very basic here. Is $postcount the right variable to be using, or should I try something else?

EDIT: Hah! I was missing something. I just needed to put the $postcount++ line in after the foreach, like so:

$postcount=0;

foreach ($this->catlist->get_categories_posts() as $single):

$postcount++;

//Start a List Item for each post:

    if($postcount==1) {
        $lcp_display_output .= "<li class=first>";
        }
    else{
        $lcp_display_output .= "<li class=normal>";
        }

I'd delete this issue, but I don't think I can.

problem with template and <list> (empty)

<Hi,

i use this plugin to display 4 thumnails with a pagination it works not very well cause i have empty LI `

    li>
  • `

    i use the default template and in my page i call a category with this code :

    [catlist id=3628 template=default catlink=no title=no thumbnail=yes thumbnail_size=260,178 thumbnail_size=thumbnail thumbnail_class=thumbnews post_title=no content=no]

    `
    it semms it was ok without thumbnails and we see the pro in the code.

    and i must give "8" to the number posts to have my 4 yjumbails on a list on 2 rows in a div.

    we see the TITLE is not in the heref but in the ALB image tag...

    if someone can help me i have finsihed and i have problem only on it,

    i have put a jquery.pahinate so i load all posts and i display only 4 but i need to put 8 to have 4 on front

    thanks,

    http://wordpress.org/extend/plugins/list-category-posts/

Overwriting "numberposts" variable globally somehow?

Is there a way to set a default "numberposts" somehow without manually editing the list_cat_posts.php file? I want it to be -1 by default (to show all posts), instead of 5 or whatever it is... so if that can be set to -1 in the next iteration or overwritten in wp-admin somehow, or even in functions.php if possible, let me know. Thanks!

(because on upgrades I sometimes forget to reset this to -1 and then I lose all my posts on certain pages)

Feature ideas: Title without link, Show all categories, Custom field without name, Sort by custom field

Hi LCP team.

I would like to have these 4 features available, not necessarily as a [catlist] parameter option, being able to add them by modifying the template would be good enough. I can dig through the CatListDisplayer to make this work myself but I want to provide templates which run on stock LCP versions. Excuse me if any of these are possible and I just do not know how to.

  1. Title without link - The function is called get_post_title() but it outputs post link. Could we have a function to output post title not wrapped in the link?

  2. Show all categories - Can we somehow show a field with all the categories the post belongs to?

  3. Custom field without name - Custom field now shows as 'Custom field name' : 'Custom field value'. It would be neat if we could output just 'Custom field value' or at least 'Custom field name' : 'Custom field value' so we can hide the name by CSS.

  4. Sort by custom field - Having the sortby option of a defined custom field would be awesome.

Cheers, Mike

Only list posts from a certain year?

Was looking to see if this was a feature but couldn't see it mentioned anywhere. Is there a way to have it, for example, list posts from 2011? I need it sectioned out by year and don't want to create year categories to sort them if i don't have to. Thanks.

Latest update spits out code

The latest update has given me some problems. While the posts are still shown as intended, the following code is shown above the list of posts:

array(6) { ["cat"]=> string(1) "3" ["numberposts"]=> string(2) "-1" ["orderby"]=> string(4) "date" ["order"]=> string(4) "desc" ["offset"]=> string(1) "0" ["post_status"]=> array(2) { [0]=> string(7) "private" [1]=> string(7) "publish" } }

As I said, the categories are still displaying as expected, but with the following text above it. Check it out on my website: http://www.drpauljohnson.co.uk/news/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.