WordPress.org

Ready to get started?Download WordPress

Forums

Page2cat: Category, Pages & Posts Shortcodes
[resolved] New version (10 posts)

  1. Trucoto
    Member
    Posted 1 year ago #

    Hello, I just upgraded the Category Page automatically from WordPress, and I found out too late that all my settings were deleted. :( I can't seem to understand how it works the new version, what should I do for WordPress to display page X when a user selects category Y?
    Thank you!

    http://wordpress.org/extend/plugins/page2cat/

  2. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for settings, but we couldn't avoid it: the original plugin was used in so many ways beyond its concept that we couldn't find a single way to solve everything.

    Can you please share a little more about your setup and the way you used the plugin? We're going to update it a lot next days, as soon as we learn more about the way it was used.

    Thank you!

  3. Trucoto
    Member
    Posted 1 year ago #

    Sure. Basically, I have a WordPress site that has both static pages and blog posts. Blog posts have categories, but if you click on the category name to see all posts related to that category, you get a list sorted by descending date, not a really good list if there are a lot of posts, and plus you don't get static pages, only blog posts. So I setup some static pages to work as better indexes to some of those categories. For example: I often publish short translations of literature in the blog part. I have some other, longer translations in static pages. The category is "translation", so if you happen to stumble upon some of my translations through Google and want to see more, clicking on "translation" won't be a good start. So I built a better index for the translations, separating the authors, genres, etc., and used the previous plugin to display a link to that static page before all the blog posts when you click on that category, i.e.: "use this index if you want a comprehensive list".
    You can see it at work, if you don't mind some Spanish, at http://seikilos.com.ar. See what happens when you click on the "Traducción" category on the right panel: a list of blog translations. See what happens when you click on "Traducciones" on the upper bar: a sorted list, a better list. Now go back in time to 2010, at http://web.archive.org/web/20100108100320/http://seikilos.com.ar/seikilos/ and click on the same category, "Traducción". You will see that first of all the blog entries you have a "Resultados sugeridos" (suggested results) with an "Indice de todas las traducciones del sitio" (Index to all translations of the site) and then "Resultados de la búsqueda dentro del blog (Results of the query within the blog entries). So any person that wants to see more of "translation" gets first of all a good index of translated texts, and then if he wants can browse the blog category list, where he/she may find perhaps musings about translation, casual notes, etc.
    I hope it is all clear :)
    Thank you for your work and for answering immediately!

  4. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please tell us what template tag or shortcode you were using to achieve that? Did you made it with the category › page menu link or the edit page box?

    That part of the plugin isn't working at now, we're rewriting it as well and it should be released in the next days. We are moving this plugin from tag based upgrades to a "rolling release" until it's fixed.

  5. Trucoto
    Member
    Posted 1 year ago #

    I am almost sure I did it with the category > page menu link, it's been a long time ago when I did that for a handful of recurring categories. Thank you again, I'll wait for the updates.

  6. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your feedback. You were using the first - and less used - feature of that plugin and we really missed that for this 3.0 release, sorry for that. We're writing that code right now so watch out for 3.1.

    As a temporary fix, you can clone your archive.php or category.php and take advantage of WP template hierarchy: you can create a category-<category_name>.php file and place a [showsingle] shortcode as a template tag. Hope it helps.

  7. mwgerard
    Member
    Posted 1 year ago #

    I am very frustrated. I had a beautiful site that was working but now it is a mess. I used "Category Pages" to sort my many posts on to pages.
    I have tried to enter your shortcode but it is not pulling posts from just the category I have chosen. Please visit http://mwgerard.com/book-reviews to see and example. This is what has been written:

    Choose from the list of reviews below:
    [showlist catid="cineastesbookshelf" lenght="10" listclass="" excerpt="" wrapper="true" wrapperclass=""]

    But it is simply listing all of my posts, in all categories.
    Would you consider reposting the old plugin for those of us who wish to still use it?

    Thank you.

  8. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry to hear it, even if this risk was stated clearly in the upgrade notice as well in the plugin description. You can download the old 2.5 version from here:

    http://downloads.wordpress.org/plugin/page2cat.2.5.zip

    Before downgrading, please note: 2.5 version is unsupported.
    Make sure to have a backup of everything.

  9. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    About the shortcode: catid is supposed to be a category ID instead of a slug, while empty attributes can be omitted, as they will revert to default values.

    Your shortcode should look like that:
    [showlist catid="<ID-of-cineastesbookshelf-category>" lenght="10" wrapper="true"]

    We'll update documentation to clarify that.

  10. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Out now version 3.0.1, should fix both issues.
    Let us know if it works for you, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags