webmachiavelli 0 Report post Posted January 16, 2011 So I'm redesigning this website. The current CMS is Joomla. I'm not a fan of Joomla so I've been building out everything in WordPress. More or less I've got the index done. The way the site works now, and I'd like to continue, is anyone who joins can post. The editors, if they like the content, feature your post on the index. So what I think I need to edit the loop to exclude everything except "category a"... Is this right? And if it is then how do I go about doing that in Platform Pro because honestly I can't figure this out. Share this post Link to post Share on other sites
herve_l 0 Report post Posted January 16, 2011 I think that you should use a plugin in order to do that : like this one, for instance : http://wordpress.org/extend/plugins/advanced-category-excluder/ Share this post Link to post Share on other sites
webmachiavelli 0 Report post Posted January 16, 2011 Herve I'll give it a look but I'm making every effort to stay away from them where I can. Share this post Link to post Share on other sites
webmachiavelli 0 Report post Posted January 16, 2011 Ok I tested it out. Oddly enough it limits the admin's ability to edit posts. Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 16, 2011 I'm definitely not deflecting, but check out this article http://www.wpbeginner.com/plugins/how-to-allow-users-to-submit-news-posts-to-your-wordpress-site/ Share this post Link to post Share on other sites
webmachiavelli 0 Report post Posted January 16, 2011 Adam Thanks for the suggestion. Problem is that doesn't really solve the problem either. I mean it does in a way present a work around but it doesn't keep those who are registered out of the loop. I know this can be done in WordPress because it is done on RedState. Plus anything Joomla can done WordPress can do better. ;-) Share this post Link to post Share on other sites
Andrew 207 Report post Posted January 17, 2011 well the recommended approach would be with a plugin... alternatively, you could hack the code and add a conditional: `if(!is_category(...)) do this...` Share this post Link to post Share on other sites
Andrew 207 Report post Posted January 18, 2011 Hey Chance, If you really want to edit the loop code, then I'll tell you how. Templates can always be overridden in the child... so in your child theme, add: `template.postloop.php` and re-add all the template code from PlatformPro. Then you can edit this 'child' code to your heart's content without fear of losing upgradability after that, use some PHP conditionals to control exactly what you want to see Share this post Link to post Share on other sites
webmachiavelli 0 Report post Posted January 18, 2011 Andrew Just so I do this right. I went into Platform Pro and copied and moved the following files into Platform Base: template.postloop.php template.load.php template.dwidgets.php template.content.php template.branding.php style.css single.php sidebar.php Anything else or should did I copy too much? Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted January 18, 2011 That's probably fine, let us know if you have any issues. Thanks, Bryan Share this post Link to post Share on other sites
Andrew 207 Report post Posted January 18, 2011 Well only copy the templates that you actually want to override Share this post Link to post Share on other sites