WordPress.org

Ready to get started?Download WordPress

Forums

Post Category Index Generator
[resolved] Basically it works (15 posts)

  1. EddieG
    Member
    Posted 3 years ago #

    I can't get it to show excerpts, maybe I'm missing something.

    It's clean for such an early version.

    http://wordpress.org/extend/plugins/post-category-index-generator/

  2. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    There was a bug in the plugin that caused only 1 post excerpt to be displayed. The bug is fixed in 0.1.2 version.

  3. larrymcg
    Member
    Posted 3 years ago #

    Version 0.1.3 installed yesterday

    1. Both tree view and list view show only a maximum of four posts in any subcategory having five or more posts. I can't find a setting to correct this.

    2. How can I list the posts in the subcategories by title ascending instead of date descending?

    http://www.abqtopten.com/blog/index-restaurants/

    Help???

  4. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    As for the post order I will add the option to choose the listing order on the next version (should be a couple of days).

    As for the maximum of four posts, I find it strange I never had that error on my blog or testing server. Can you send me the parameters that you used ?

  5. larrymcg
    Member
    Posted 3 years ago #

    [pcig category=rposts show=category_name,post_title links=post_title hide_empty=true]

    WordPress 3.2.1 twentyten theme.

    http://www.abqtopten.com/blog/index-restaurants/ , bottom list of three (the top two are AZIndex). There should be ten titles under the category "Larry's Top Ten. Only four show up.

  6. larrymcg
    Member
    Posted 3 years ago #

    I found the source of the title number problem. In the WP Dashboard Reading settings, I have set "Blog pages show at most" to 4. If I change it to 6, I get at most six titles for any subcategory.

    When you are loading up various arrays, you need to bypass the database field 'posts_per_page' in the table ...options, which controls this title listing. The number of titles to show needs to be set independently of the database value, and should be set (to no limit) within your php code.

    This may require you to rewrite a standard WP function in your code to replace whatever is used from functions.php. We don't want to rely on changing the database value, because this will screw up the number of posts (titles) appearing on the front page.

    Good luck.

    Larry
    larry@abqtopten.com

  7. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    I guessed that was something like that since I was unable to reproduce the error even on my test installation.

    I already set that parameter in the code with a high value, added the order option in latest version.

  8. larrymcg
    Member
    Posted 3 years ago #

    Marco:

    999 should do the trick.

    The sort order option doesn't seem to work yet. All post titles get displayed descending. .

    Ascending:
    [pcig category=rposts show=post_title links=post_title order=asc, orderby=title]

    and Descending
    [pcig category=rposts show=post_title links=post_title order=desc, orderby=title]

    give exactly the same results.

    Almost there. Thanks for the speedy help.

    Larry

    http://www.abqtopten.com/blog/index-restaurants/

  9. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    The order options works, however I copy-pasted wrongly the example. Just remove the comma after desc or asc and should work.

  10. larrymcg
    Member
    Posted 3 years ago #

    Works great now. Thanks for the help. Nice plugin.

    What's next? CSS?

    Larry

  11. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks.

    I don't exactly any plans for the plugin because it already does what I wanted but I might add a few more options later on depending on the functions and my spare time.

  12. bplevyak
    Member
    Posted 3 years ago #

    New version just threw this error at me:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 390946 bytes) in /home/content/58/6892458/html/wp-content/plugins/post-category-index-generator/simple_html_dom.php on line 935

  13. esmi
    Forum Moderator
    Posted 3 years ago #

    Try increasing the memory available to PHP:
    http://wordpress.org/support/topic/253495#post-1017842

  14. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    New version just threw this error at me:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 390946 bytes) in /home/content/58/6892458/html/wp-content/plugins/post-category-index-generator/simple_html_dom.php on line 935

    - Does this only happen in the newer version ?
    - Do you have many categories/post ? how is the structure of your posts/categories ?
    - Does increasing you memory like esmi said solves the problem ?

  15. Marco Constancio
    Member
    Plugin Author

    Posted 3 years ago #

    Actually only now I notice the filename that is giving the error. What is your post_sections parameter ? because according your error message that is what is consuming your memory.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic