Add a InfoBox in the media upload window

If you wanted to place the message toward the bottom i’d suggest.. add_action( ‘post-upload-ui’, ‘upload_window_additions’ ); function upload_window_additions() { echo ‘<div>Your content</div>’; } You found a fix whilst i was looking for you, but figured i’d still offer it anyway. 🙂

Different development environments (Mac & Windows)

You need to have 2 sets of settings one for if file_exists and one for else: if ( file_exists( dirname( __FILE__ ) . ‘/local-config.php’ ) ) { include( dirname( __FILE__ ) . ‘/local-config.php’ ); define( ‘WP_LOCAL_DEV’, true ); } else { define(‘WP_HOME’, ‘http://localhost:666/projectname/’); define(‘WP_SITEURL’, ‘http://localhost/foldername/wordpress/’); }

Query post for ‘selected category’ in archive.php

The easiest way to do this is to simply make a category.php template file, that way you’re not jamming everything into one template with multiple query’s and conditionals. http://codex.wordpress.org/Template_Hierarchy#Category_display It is unclear what you mean by “featured”, do you want an url like http://example.com/portfoliography/architecture to have a select posts at the top? Or do you … Read more

Custom static page get_header error

I want to make a static about page for my wordpress site. I don’t like the format of the wordpress static pages that are managed through the control panel… But that’s how the WordPress CMS is designed to be used. For static pages, create static pages. so I thought I would make my one custom … Read more

Custom title, Bones theme

In your header.php file, replace this line: <p id=”logo” class=”h1″><a href=”https://wordpress.stackexchange.com/questions/87084/<?php echo home_url(); ?>” rel=”nofollow”><?php bloginfo(‘name’); ?></a></p> with your custom line: <p id=”logo><h1>This is a<br /><span id=”customtitle”>Big title</span></h1></p>

Load more posts with multiple queries

Looks like you’re not resetting your query, so WordPress is running a new query on the posts you already got. After your first query add: wp_reset_query(); Always reset after any query that isn’t The Loop. Here’s the codex page on it: http://codex.wordpress.org/Function_Reference/wp_reset_query

Custom attachments styling in post view

Retrieve the attachments There’s a pretty unknown, but handy function in core: get_children();, which accepts an array of arguments. One of those is post_mime_type. $attachments = get_children( array( ‘post_parent’ => get_the_ID(), ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => ‘publish’, ‘post_mime_type’ => ‘application/msword’ ) ); If you’re unsure about the MIME types of your doc … Read more

@font-face is not working in WordPress

Depending on your browser and platform you need to specify the font in different formats. See this example: @font-face { font-family: “LeagueGothic”; src: url(‘../fonts/league_gothic-webfont.eot’); src: url(‘../fonts/league_gothic-webfont.eot?#iefix’) format(‘eot’), url(‘../fonts/league_gothic-webfont.ttf’) format(‘truetype’), url(‘../fonts/league_gothic-webfont.woff’) format(‘woff’), url(‘../fonts/league_gothic-webfont.eot#iefix’) format(’embedded-opentype’), url(‘../fonts/league_gothic-webfont.svg’) format(‘svg’); font-weight: “normal”; font-style: “normal”; } If you just have the font in .ttf format and need the others, you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)