raquelxmoss
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy Images] Having problems with hide_emptyI didn’t in the end, sorry! I ended up just giving them all pictures. Sigh.
Hi Jack,
Thanks for that. Unfortunately though, posts need to have multiple people associated with them, rather than just a single author, which is why I am using tags. There are also a lot of people, and setting up each of them as an author is going to be too much of a hassle for the end-user.
Forum: Fixing WordPress
In reply to: Excluding the search results page from body class functionNever mind! I figured it out. I did the following:
// add category nicenames in body and post class, allows different colours (via css) for each category function category_id_class( $classes ) { if ( is_search() ) { $classes[] = 'search-results-page'; return $classes; } else global $post; foreach ( get_the_category( $post->ID ) as $category ) { $classes[] = $category->category_nicename; } return $classes; } add_filter( 'post_class', 'category_id_class' ); add_filter( 'body_class', 'category_id_class' );
Forum: Fixing WordPress
In reply to: get_category – help with linking to each categoryThanks alchymyth. Are you able to suggest more specifically what the code should be? I’ll have a play around, but I’m not great at this sort of thing.
Forum: Plugins
In reply to: [Contact Form 7] Custom user fields as defaults in contact formThanks for your response Buzztone — I did try the dynamic text plugin but I couldn’t get it to work and didn’t find much help in the documentation. Probably my own stupidity.
In the end, I adapted this tutorial to suit my needs, then used the standard markup as suggested in the Contact Form 7 documentation.
For example, using the tutorial I linked, I created a field named ‘address’ and then added default:user_address to Contact Form 7. Works perfectly, and I can create as many custom user meta fields as I like!