Felix Renicks
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I want to intermingle custom post types and posts more closelyAdd this to the functions.php file in your theme folder. This will list events anywhere posts are listed (assuming the name of your custom post type is “event”).
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( 'post_type', array( 'post', 'event' ) ); return $query; }
Forum: Fixing WordPress
In reply to: Custom post type helpYou could use the built-in featured image functionality for your image field, or the Advanced Custom Fields plugin.
Forum: Fixing WordPress
In reply to: Links in table not formatted consistentlyYour CSS stylesheet is set to only underline links inside <p> tags.
Forum: Fixing WordPress
In reply to: UTF-8 problem… sighAdd this code to your theme’s header.php file after <head>:
<meta charset="UTF-8" />
Forum: Fixing WordPress
In reply to: White Label CMS client LoginYou can find a list of valid usernames under Users > All Users, whilst logged in as an administrator. (Editor is a type of user, not a username.)
Forum: Fixing WordPress
In reply to: Lost my site after upgrading to 3.4I love a happy ending!
Forum: Fixing WordPress
In reply to: Lost my site after upgrading to 3.4Can you try changing the WP_DEBUG line in wp-config.php to true, and post any errors that are then displayed when you view the site?
Also check out the functions.php of the theme you’re testing; search for “admin” and see if there’s anything there that might be breaking the admin panel.
Forum: Fixing WordPress
In reply to: Embed YouTube and Not show related video's when video is finishedTry this:
<iframe width="960" height="500" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/Y0V8Mlr2ANY?rel=0&autoplay=0&loop=0&wmode=opaque&controls=0&showinfo=0&theme=light" marginwidth="0" marginheight="0"></iframe>
Forum: Fixing WordPress
In reply to: Comments Not AppearingDo the comments appear in the admin panel? Are they marked as approved, or not?
Forum: Fixing WordPress
In reply to: Live Wire Show full post problemYou can make your excerpts longer by adding this code to functions.php in your theme folder:
function custom_excerpt_length( $length ) { return 99999; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Forum: Fixing WordPress
In reply to: Unable to edit old eventsAre you using a plugin to create the events page, and if so, which one?
Forum: Fixing WordPress
In reply to: Embed YouTube and Not show related video's when video is finishedYou’re very welcome!
Here is the list of allowed parameters. You can use any of these that list HTML5 under “supported players”; just add them to the URL in the same format as the others, eg &name=value
Forum: Fixing WordPress
In reply to: Duplicate Meta Descriptions showing upThis is probably due to pagination – each page of a category will have the same meta description. If the errors bother you, you should block indexing for category / author / tag archives.
Forum: Fixing WordPress
In reply to: remove category and go straight from sidebar to postThis might be a quirk of your theme, but if the sidebar is a standard WordPress menu, you can just add these posts to it in Appearance -> Menus, instead of the categories.
Forum: Fixing WordPress
In reply to: Embed YouTube and Not show related video's when video is finishedYou almost had it with the iframe code, but you missed out the video ID! Stick this in the HTML tab of the editor:
<iframe width="960" height="500" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/Y0V8Mlr2ANY?rel=0&autoplay=0&loop=0&wmode=opaque" marginwidth="0" marginheight="0"></iframe>