Articles of customization

Custom Taxonomy Archive not displaying entries

I have CPT ‘movie’, with the following taxonomies: genre, director, and actor. The code used to register these is this: http://pastebin.com/yJ9XHCDk I have an archive movie page working using the following code in archie-movie.php: <?php get_header(); ?> <div id=”middle” class=”clearfix”> <div id=”inner”> <div id=”content” class=”<?php echo $bw; ?>”> <?php get_template_part( ‘part-genrenav’); ?> <div id=”pageHead”> <?php […]

Changing editor-style.css style

I am using the following code in my function.php file to add a Format dropdown to the WordPress visual editor with just one option, Custom 1. <?php function custom_styles_button($buttons) { array_unshift($buttons, ‘styleselect’); return $buttons; } add_filter(‘mce_buttons_2’, ‘custom_styles_button’); function my_mce_before_init_insert_formats( $init_array ) { // Define the style_formats array $style_formats = array( // Each array child is […]

How the WordPress sidebar works

Ok, the title is surely not good to explain my very basic question, but here it is: I just started creating a wordpress theme and the index.php has two columns: 1.) The main content and 2.) A vertical column where I am showing other info like Archives, Recent posts all programatically. Updated Until now everything […]

Edit admin post page

I have to customize the admin page where you edit the other pages “wp-admin/post.php”. I have to add a lot of things, and delete others, change colors and add a custom menu to the top. I don’t know how to start searching for this. Are there any hooks, or funtions to change the HTML in […]

Search results ordered by custom post types are not grouped

For a WordPress website I have a couple of custom post types, named cities and books, and also the regular blog posts. I have customized the search results (only search in the post title) page so that the results are to be ordered by custom post type. The problem is that the search results within […]

PHP files included in functions.php don't seem to work

This is my first post on WordPress StackExchange, I’ll try to be precise. My question is: Is there anything in particular I should do to the files I’m including in my theme’s functions.php file? I’m creating a WordPress theme and my functions.php file is getting very big now. I managed to remove a lot of […]

Assigning the same custom meta box to multiple post types

I currently have videos set up as a custom post type and I have also created a custom meta box for it that allows users to enter the ID of either a youtube/vimeo video – the video is then displayed on the front end. I want to re-use this meta box for another custom post […]

Protect changes made to the theme when updating

I customized the wordpress theme I’m using by changing php, css and even a js file. Is there a way to protect these changes, when updating the theme to a new version?

How to display post title & excerpt when mouse hovers on an image?

I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post title and post excerpt will de displayed. Couldn’t make it happen though 🙂 Any clue will be helpful. Site is developing in wordpress enviornment, so any […]

How can a single line in a blog post take down my server?

I’ve been trying to write a post about a simple Windows Powershell script for the last few hours, but when I try to preview the post with the script included, it takes down my server. Unfortunately the server isn’t mine to control (it’s hosted by 34sp.com) so I’m limited in what I can do to […]