richardlee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting current Post ID ? (out of The Loop)Actually Kaf, can you explian to me where $post = $wp_query->post; comes from?
Forum: Fixing WordPress
In reply to: Getting current Post ID ? (out of The Loop)As expected it works. Thanks again.
Forum: Fixing WordPress
In reply to: Getting current Post ID ? (out of The Loop)Thats neat Kaf 😉 thanks a bunch. I’ll try it out and if all is well mark this as resolved.
Oh and masquerade thanks for your assistance, but like Kaf has said activating permalinks changes the entire structure which is why I posted this question :).
Just for anyone else reading this, keep in mind this is a small issue with the Blix theme. Although not fatal, the recent posts generation partly relies on non-permalink structure to deduce the current Post.
Forum: Themes and Templates
In reply to: Blix ModsRead up on a ‘Custom Fields’ in Codex. There’s an exmaple which is very similar to what you are trying to achieve.
Forum: Everything else WordPress
In reply to: does home page show ALL acitve posts?Yeah cheers,
Im just trying to work out how to setout my site 🙂
Forum: Everything else WordPress
In reply to: does home page show ALL acitve posts?So is it the active posts or just the posts for the current month?
Forum: Everything else WordPress
In reply to: does home page show ALL acitve posts?Thanks guys,
I was wondering whether the main blog page shows the active posts (from any month) or just posts for the current month? And is there a limit to how many it shows?
Forum: Everything else WordPress
In reply to: does home page show ALL acitve posts?Forum: Plugins
In reply to: How to implement a thumnail system for a portfolio section?Hmmm, this is becomming more of my own blog heh 😛
I’ve come with an idea: I could add a custom field called post_thumb and when the post list is created for category “Portfolio”. I can then check this field for a value, and grab the relevalent image from a wp-content/images/posts directory…
Yes yes! I seem to be slowly getting somewhere now 🙂
Forum: Plugins
In reply to: How to implement a thumnail system for a portfolio section?Hi moshu,
Thanks for your reply. It’s not really the category I’m concerned about.
Basically if I could create a hack/plugin that works similar to category images, BUT for individual posts that would be ideal! That way I could set thumbnails for posts and create an iconic list in the sidebar..
Forum: Plugins
In reply to: How to implement a thumnail system for a portfolio section?Do I have to bite the bullet on this or does someone have a solution?
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentNormally what I would do in this case is create my own function, add this to a file say theme_functions.php and include this in header.php. You’d be surprised after looking at the tables how much easier it is just to make you own queries to get the info you need 🙂
Forum: Fixing WordPress
In reply to: How to display subpages only if parent is viewed?Hey,
Just a thought, have you tried creating your own functions with relevant queries to find out subpages?? I’m not sure exactly on the queries but sometimes you have to think out of the constraints of WP to take your site the extra mile. Have a look at the WP tables see if there are any queries you can make to create a getChildPages() function and use this within page.php (the Page template) to check for child pages for the given page
Something like:
if(getChildPages() > 0)
//print the child pagesAnd of course, since we all like to keep code as reusable as possible, I would stick this in a <theme_functions>.php file. Then all we need to do is include (require_once would be better) this in the top of the header.php file.
If your still unsure of what I’m talking about, checkout the BX_functions.php in the Blix theme. See how he’s created some custom functions? Neat eh?
Forum: Plugins
In reply to: How to implement a thumnail system for a portfolio section?Hi alphaoide, firstly thanks for your suggestion.
That seems like the most straight forward option. I was thinking of using Pages instead of Posts though. But I can see the advantage of Posts. I can categorise! 🙂 … The next problem is how can I replicate a layout simialr to that used by Simplebits (http://www.simplebits.com/work/microformats/) for displaying a Project? – image on left with caption and summary to the right
PS Out of curiosity what are these ‘other options’ you speak of?
Thanks again.
Forum: Plugins
In reply to: How to implement a thumnail system for a portfolio section?Actually here’s a link to something similar to what I’m trying to do!
http://www.simplebits.com/work/
(The above site is run on the ‘Moveable Type’ CMS)See the list of projects down the right and how you can click these to go to the specific project?