5 reputation
4
bio website
location
age 25
visits member for 11 months
seen Oct 11 '13 at 15:55

Junior Developer www.purpleclaw.co.uk


Jul
23
awarded  Popular Question
Oct
11
comment Active class to current link
You are quite right recent work is a static page. However music, commercial, promo etc are post types but they are using template files is this wrong? For the custom post types should I be using single-CPT.php instead of template-CPT.php
Oct
11
comment Active class to current link
purpleclaw.org.uk/lulu - Link to the site
Oct
11
comment Active class to current link
I have read through the codex but everything I try for the custom post types isnt working. The custom post types are in the main nav and then they are sub-nav items. I have viewed the source code and found that wordpress is assigning the following class to the current post type page: menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-133 current_page_item menu-item-137
Oct
11
comment Active class to current link
Thanks @chip Ive realised that for the page items in my navigation the class being applied by wordpress is: li.current-menu-item and so I can style those ones as I please, however for the custom post types I cant figure out which class wordpress is assigning which is making it difficult to style them.
Oct
11
comment Active class to current link
thanks that worked for pages but when I click on the custom post types in the nav menu it doesnt work.
Oct
11
asked Active class to current link
Oct
4
comment display all posts in current category
ok thanks i will give it a try.
Oct
4
comment Assigning the same custom meta box to multiple post types
$posttypes is taking the arguments that are in the array. I added my custom post types where it says 'type1' 'type2' and then as far as I know its looping through each custom post type and displaying my meta box in each post type so that users can add the video ID for the video post type as well as the music post type. Which is then displayed on the front end.
Oct
4
comment display all posts in current category
Sorry to be a pain but could you show me how this would fit into my code? I'm not sure where I need to add the code you suggested. Many thanks.
Oct
4
comment Assigning the same custom meta box to multiple post types
Thank you @kalymaStudio I added the code you suggested and changed the type1, type2 items to be my custom post types and it works!
Oct
4
accepted Assigning the same custom meta box to multiple post types
Oct
4
comment display all posts in current category
I would like to display all posts on the single-custom-post-type.
Oct
4
asked Assigning the same custom meta box to multiple post types
Oct
4
asked display all posts in current category
Sep
27
awarded  Scholar
Sep
27
comment Displaying information from custom field on custom post type
Thank you @cybnet for pointing this out - somehow I have managed to adjust my loop and now when I click on commercial it displays the correct video and it isnt dumping all the other videos out that are associated with the other categories in my post type (like it was). Appreciate your help. Thanks again.
Sep
27
accepted Displaying information from custom field on custom post type
Sep
27
awarded  Commentator
Sep
27
comment Displaying information from custom field on custom post type
I have added the full function for you (: