jonedwards
-
WordPress Post Queries
Okay, so I have come unstuck on this query thing and need some help, please? In my category.php file, I need to run a few queries (using WP_Query) in order to display the following: * One post from the the current category that is tagged as "f…
-
Add Post ID to Featured Image
Hey, @realife, thanks. Could you explain how this would pull the post's ID into the title tag? At face value, this doesn't look like it would work? Thanks
-
WordPress Post Queries
Hey, Doc It was more a question of how many query loops I could run... I'll give it a go. Thank you.
-
WordPress Post Queries
Hey, Andy I'll admit to having accidentally pressed 'post' instead of 'save draft', so you might've had a reason for posting that rather unnecessary link in your reply. You might want to rethink that approach in future…
-
Linking CSS Files - Need some insight
Hey, guys. Thanks for all the comments and suggestions - I'll definitely take them into account and follow your lead. And thanks @otc for the minifier link.
-
Linking CSS Files - Need some insight
Hey, @Watson90 Thanks for the response. I'd agree with your sentiment, but when setting up styles for a CMS like WordPress, you can often end up with a stylesheet that runs into hundreds of lines... Splitting into smaller, maintainable chunks…
-
Thoughts on Adjoining / Chaining Classes
Hey, Joshua. Thanks for the link - good read. Gonna have to change a few things in future... @StevenCrader - not really, no. But the IE6 reference was only a small part of the question.
-
WordPress Meta Boxes Tutorial/Help
Thanks Doc. I've actually gone an used this one... The Gallery Field is particularly handy.
-
WordPress Meta Boxes Tutorial/Help
Hey, @chrisburton. Thanks for this. It's certainly a start. Appreciate it. Will let you know how it goes.
-
Register and call jQuery scripts in WordPress
Hi I've tried tried my code listed above (and using the wp_head hook), but all I end up with is random lines of text showing the theme directory path at the very top of my page... Any suggestions? Thanks
-
Register and call jQuery scripts in WordPress
Hi Right. So other than my incorrect hook, that should work? I do prefer scripts in the head rather than in the footer of sites. Thanks
-
Register and call jQuery scripts in WordPress
Hi Vermaas (and others) Thank you for the reply… So would this work? if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); function my_jquery_enqueue() { wp_deregister_script('jquery'); …
-
Code it correctly: Is "sidebar" really an appropriate id name?
I reckon it depends on your own semantics... In WordPress, you can have multiple dynamic "sidebars", so in that instance, a class .sidebar might be more appropriate for the wrapper. If you're using HTML5, one would give the content …
-
Display / Echo friendlier MIME-type names in WordPress
Aaaah... Thanks Traq and Schmotty - worked like a charm and I've learnt something new. Cheers
-
Display / Echo friendlier MIME-type names in WordPress
Hi Traq My code above resides in archive-downloads.php I am echo-ing the resulting text, not printing. Feel a bit stupid right now... Where are you suggesting your snippet should go - functions.php? Also, how does the "print friendly_mime&qu…
-
Display / Echo friendlier MIME-type names in WordPress
Hey Traq. Thanks for the reply. I've only ever used a translate function to change "Posts" to say "Articles"... But even that was from a tutorial. Any hints / snippets?
-
Wordpress PDF downloads
Hi Arvid Do you just want to create an item / tab in your menu that links to a PDF? If that's the case, one option would be to use WordPress's custom menu(s) option (in Admin > Appearance > Menus) to build a menu and then create a …
-
Convert UL menu to dropdown with optgroups
Thank you, Wolfcry. Worked like a charm. Going to go through this properly and see what was different...
-
Convert Menu to Dropdown (variation)
I'm having a similar problem, but it's not to do with your HTML. It's the jQuery script that's not working... And, like you, I don't know how to fix it.
-
Display custom taxonomy (like "the_category") for custom post type
Hey Mike, Thanks for sharing that. Always good to trim the fat... It worked. Cheers.
-
Display custom taxonomy (like "the_category") for custom post type
Thanks for the nudge in the right direction, Rob. I used the following: <h4><?php $terms = get_terms("sectors"); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { echo $term->name…
-
Semantic CSS class names and ID's
Yes, sorry. Meant that. Have changed it.
-
Display limited number of Custom Post Types titles in sidebar.
I got this working eventually. Pretty similar to the above, so thanks ddliu.
-
Semantic CSS class names and ID's
I guess, thanks, WolfCry. This is a forum... ...so I thought I'd post a topic worth discussing? If you look at how HTML5 has introduced a heap of tag-names like, nav, header, footer, article, aside, etc that are all references to journalistic…
-
Prefixing functions.php (WordPress hooks)
Hey Doc Thanks for the reply, and for posting your functions template - very handy reference. And, yeah, the post is a bit of a tall order. But a decent reference to this doesn't really exist, in my view. I have uploaded 2 functions.php file…
-
Registering and referencing jQuery scripts the right way in WordPress
Hey Doc. Yup. They're jQuery functions and jquery plugins all sitting in a /js/ folder in my theme. I found this article - http://markwilkinson.me/2011/02/loading-wordpress-scriptsstyles-correctly/ - I think it might answer some things...
-
Registering and referencing jQuery scripts the right way in WordPress
Hey Doc. Thanks for your feedback - appreciate it. I do however, have most of that down already - from going through all the DigWP tutorials. How though, do I reference my own js (jquery) files for my theme? Do I enqueue them in the same way as we…