| User | Post |
|---|
5:35 pm May 15, 2009 | Mark
| | | | | Member | posts 5 |
| | How do you make sure your category IDs correspond to the categories you want them to correspond to? I'm trying to install News Evolved but the cats are fucking with my head, the numbers assigned automatically seem to be random, I can't make head nor tail of it. |
|
5:39 pm May 15, 2009 | Daniel Bachhuber
| | | | | Admin | posts 102 |
| | Hey Mark, That actually is one of the unfortunate things about WordPress in that it assigns categories (and post and page) numbers by random. On the CoPress website, we've installed a plugin called "Reveal IDs for WP Admin" that will easily expose the category IDs to you in the admin side of the website. Does this help? | |
|
8:04 pm May 15, 2009 | Andrew Spittle
| | Walla Walla, WA | | | Moderator | posts 49 |
| | Hey Mark- Another option to take if you don't want to install another plugin is to got to the category administration page (under Posts there should be a link titled "Categories"). This returns a page with a list of all your categories. If you click on a category it should return a url that ends in something like "action=edit&cat_ID=47″ That number that follows ID is the value for that category. That value can then be plugged into the theme and it should work. If you need further help shoot me an email at andsp13 at gmail dot com | Andrew – andrew@copress.org – CoPress Hosting Director – http://www.andrewspittle.net |
|
11:24 am May 16, 2009 | Mark
| | | | | Member | posts 5 |
| | wow, that's a serious weakness with WP. So basically to get News Evolved working correctly I'm going to have to go through the theme editor and hack the category IDs to match how the theme operates? So when I make a News category and WP assigns it some number ID I'll have to go through HOME.php and change the code to match the category IDs of the random number assigned by WP? Ouch. Better get started… should be worth it though… |
|
12:56 pm May 16, 2009 | Andrew Spittle
| | Walla Walla, WA | | | Moderator | posts 49 |
| | Yep you've got that right. It's definitely a frustration with WordPress. I think it's also why so many of the "news themes" for WP tend to be pretty uniform on their category pages, etc. The only way to really ensure that a theme "works out of the box" is to keep things simple and largely the same. Happy customizing! | Andrew – andrew@copress.org – CoPress Hosting Director – http://www.andrewspittle.net |
|
2:22 pm May 16, 2009 | Mark
| | | | | Member | posts 5 |
| | Okay, thanks for that. Gah, sorry to do this people – I'm having some serious issues getting this sorted. I have the four columns on the homepage sorted, well at least they're displaying some text, headline, date etc as they should. For some reason the Featured Content Gallery is acting the total prick – driving me crazy. I had it working perfectly until I changed the category IDs, now it's gone. For some weird reason every single post is automatically generating a custom field called "views" with a numerical value. I've no clue why this would happen… Also, even though the stories in the four columns are displaying on the homepage, when you click through to the section page (News) they remain but when you then click into the story itself it simply shows the headline and no content… also, there are several errors displaying across the site even though I'm 99% sure I have the plug-ins installed correctly. If you think you can help and but need back-end access I can give any CoPress forum members a log-in on Twitter no problem, @mark_coughlan… Any ideas where I may be going wrong? I've been working on this for a few days and just cant get my head 'round it, pulling my hair out… |
|
7:09 pm May 16, 2009 | Mo Jangda
| | Toronto, ON | | | Member | posts 35 |
| | Just wanted to clarify something. The ID for categories (and Pages+Posts) isn't assigned randomly, but actually incremented. It seems random, because WordPress (for the sake of efficiency, and other reasons) treats categories and tags as the same type of object ("Term") and stores them in the same db table. (Same case with Posts and Pages). So it may seem like they're being assigned random IDs, but really, they're not. Yes, it makes things annoying for the user/theme creater/plugin writer, but boils down to being an efficiency trade-off. Though, I'm sure they could make things easier for the user if they wanted to  There are some ways interesting ways to overcome this. For example, the nav bar here: http://www.theboar.ca is all dynamically generated by setting up a category heirarchy. Andrew: if you want help in possibly setting that up for News Evolved, send me an email and I'll show you how. @Mark: for your article pages, it seems like you're missing this plugin: http://wordpress.org/extend/pl…..gfontsize/ As for Featured Content Gallery, it seems to be an issue with the plugin (It doesn't work on newsevolved.com/demo either on FF and Safari; works fine on Opera though). | |
|
6:26 pm May 17, 2009 | Andrew Spittle
| | Walla Walla, WA | | | Moderator | posts 49 |
| | Alright, that's just weird how the Featured Content Gallery just stopped working. I haven't done anything to the code for a while and it worked the last time I edited anything. Hmm…I'll fix that soon. Mark, I'd be happy to walk you through the plugin settings, just give me a day to put together all the settings in an email and then I'll send them off to you. Sound good? | Andrew – andrew@copress.org – CoPress Hosting Director – http://www.andrewspittle.net |
|
6:13 pm May 28, 2009 | Mark
| | | | | Member | posts 5 |
| | Hey guys… Andrew: I got your email, sorry I didn't get back to you. I'm doing an internship at present with one of the biggest (and most understaffed) media outlets in Ireland so I've put the website I was trying to install News Evolved onto, to the side – for now. I'' be referring back to your email when I get a week to work on the site. Thanks again, huge help so far man… |
|