Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Chocolaterebel

    (@chocolaterebel)

    Pasting the code again, with appropriate links this time (as to not break the page again). 🙂

    list_cat_posts.php
    http://wordpress.pastebin.com/TNh4LheV

    default.php
    http://wordpress.pastebin.com/KsaTxgSc

    Thread Starter Chocolaterebel

    (@chocolaterebel)

    Okay, I made the update and then imported the small things which made it work on my site. 🙂 On retrospect I realize I didn’t take note of all of the things I moved over, but I’ll note a few I remember off hand:

    list_cat_posts.php

    // File locations lower in list override others
    		STYLESHEETPATH.'/list-category-posts/'.$atts['template'].'.php',
    	);

    to:

    // File locations lower in list override others
    		WP_PLUGIN_DIR.'/list-category-posts/templates/'.$atts['template'].'.php',
    	);

    But once I did this, it was reporting back errors from the default.php template due to the thumbnail function not working when a post does not have a thumbnail (at least that’s how I understood it). I put in the if clause that another person suggested in the forum. I also adjusted the Show Category code in default.php.

    I’ll just copy paste the entire files at the end of my post in case I missed something. 🙂

    One thing that I’m working to use in my site is the widget, and the widget uses the default.php template automatically (unless the user changes it in lcp_cat_posts_widget.php). New feature idea: Like the [catlist] function, it would be great if the LCP widget has an entry for custom templates.

    In regards to my own custom template, it didn’t work with the new update until I fixed some of the changed functions/variables. I will have time later to parse through my css to get the styles necessary to make my template look as it should. 🙂

    Here are the php files as I’ve tweaked them:

    list_cat_posts.php

    [Moderator note: snipped code block, please use the pastebin as per the Forum Guidelines]

    Thread Starter Chocolaterebel

    (@chocolaterebel)

    Looking forward to it! I wish I could edit my previous post, I somehow broke the page posting so much code. :b I’ll know better for next time.

    I’ll update to the latest version and report back later about how it went. 🙂

    I should mention that the template I’m using is specifically for the wordpress theme I have (Pagelines Pro), especially due to the css styling. I’ll see if I can export the css components such that the plugin looks like what I have right now, though it may not be for a while. 🙂

    Great plugin! I adore it’s easy approach to attaching posts and pages together. 🙂

    On the subject of page formatting and the use of templates — would it be possible for the user to determine where they would like the default template to be (be it categories.php, archives.php, etc) — or perhaps more accurately, choose to have the plugin pull the template the page in question currently using?

    For example, my podcasts page has a double sidebar around the content (in addition to other features, I’m using the PlatformPro theme framework here). When I apply the plugin to attach that page to my podcasts category, it uses the default template of the home page (as it’s intended); however, because of this I lose my double sidebar I wanted for that page and loads the features of my homepage I didn’t intend there (feature slider, single sidebar, etc.).

    Ideas?

Viewing 4 replies - 1 through 4 (of 4 total)