How to display a widget on a page with no theme?

You should read this. It’s completely possible, but you have to go through the right process. First you should register a new “sidebar” and call it whatever you want to call that page you want the widget to display on. Then you need to call that sidebar into the page’s template file, after which you … Read more

display unique post per category

Track your post IDs. $cat_args = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘exclude’ => ‘17,1’, ‘number’ => ‘6’ ); $fcategories = get_categories($cat_args); $used_ids = array(); foreach($fcategories as $fcategory) { $post_args = array( ‘posts_per_page’ => 1, ‘cat’ => $fcategory->cat_ID ); if (!empty($used_ids)) { $post_args[‘post__not_in’] = $used_ids; } $fposts = new WP_Query($post_args); if ($fposts->have_posts()) { while($fposts->have_posts()) … Read more

Trim Post Content on Home Page

On your theme folder, open the index.php (or, home.php, or, front-page.php), and find, if there is a function named: the_content() Just change it to: the_excerpt() P.S.: If you can’t find the_content() in the mentioned file, try searching content.php, and in this case, change it with caution. Because in theme TwentyTwelve, it’s used with conditional tags … Read more

What login/password do I need to install a wordpress theme?

So which credentials does it need? If you are able to see the download form, then presumably your WordPress user credentials are OK. So, you need (s)FTP credentials. Either you got the username/password wrong or there is something site specific getting in the way, maybe at the server level.

How can I change the prev / next buttons text to Dutch?

If you’re simply using one language on your site: Find the utility.php file in your themes folder with location lib/functions/utility.php Next find the lines 227 and 231 and change the __( ‘Previous Post’, ‘contango’ ) and __( ‘Next Post’, ‘contango’ ) to your desired values. For example: previous_post_link( ‘%link’, __( ‘vorige post’, ‘contango’ ) . … Read more

Is “get_template_part” hierarchy possible?

Yes, what you describe is already built in to the get_template_part() function: <?php get_template_part( $slug, $name ); ?> Where “masthead” is the general template slug in your example, and “custom” is the more specialized version. You’ll have to name your parts slug-name.php (so, masthead-custom.php, rather than custom-masthead.php). Note that you can also use the value … Read more

Creating custom menu with custom themes

Directly from the codex: Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files. You should familiarize yourself with … Read more