wp_enqueue_scripts hangs

I’m not sure you can use is_page() in the function.php (citation needed!). Instead of enqueuing the the style sheets, you could echo them in the header.php. So, in the header.php you’d want… <?php if ( is_front_page() ) { echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . get_template_directory_uri() . ‘/css/homepage.css”>’; } else if ( is_page( ‘corsi’ ) ) … Read more

I want to add a custom field in the rss title of each post, but don’t want it to be shown on the site

I’ve never actually tried this, but I think the following should work: function wpse_96096_append_author( $title, $post_id ) { if( is_feed() ) { $author = get_post_meta( $post_id, ‘{YOUR CUSTOM FIELD KEY}’, true ); $title = $title . ‘ by ‘ . $author; } return $title; } add_filter( ‘the_title’, ‘wpse_96096_append_author’, 10, 2 ); What this does is … Read more

Google PageSpeed: Avoid landing page redirects?

One of the most wasteful redirects happens frequently and web developers are generally not aware of it. It occurs when a trailing slash (/) is missing from a URL that should otherwise have one. For example, going to http://astrology.yahoo.com/astrology results in a 301 response containing a redirect to http://astrology.yahoo.com/astrology/ (notice the added trailing slash). This … Read more

Capturing POST data

It points to options.php because it uses the Settings API. Well, not completely, but that’s not the point now. You should not change that. What you can do, to add your own logic: hook into the save process for that option: add_filter( “sanitize_option_webweb-member-status-group”, “your_extra_handler” ); function your_extra_handler( $input ) { if ( isset ( $_POST[‘your_extra_post_field’] … Read more