eileencodes
  • Member for 11 years, 3 months
  • Last seen more than 6 years ago
Pagination not working with custom loop
12 votes

I had a similar issue earlier today... Do you have a custom post type and a page or post with the same slug? Meaning is the url of a page you have /real-estate and the custom post type url rewrite at ...

View answer
Featured Image Size
Accepted answer
9 votes

For post thumbnails you can either crop and image to the thumbnail size or scale the image. To enable crop you can call the thumbnail 1 of 2 ways. Name a size in the functions.php file like so: <?...

View answer
hide Wordpress 3.1 admin menu
8 votes

Go to Dashboard > Your Profile > Show Admin Bar and uncheck "when viewing site"

View answer
Custom Post Types on Category Pages
6 votes

For custom post types with custom taxonomy you can make a template for that taxonomy. Your custom taxonomy template would be named taxonomy-{taxonomy}.php. For example, if your taxonomy was called "...

View answer
How to un-attach rich text editor from named textarea elements
Accepted answer
4 votes

Currently you're telling it to target all textareas on the page so you need to change $init['mode'] = 'textareas'; to $init['mode'] = 'specific_textareas' or $init['mode'] = 'exact' and then name ...

View answer
Post Thumbnails multiple sizes
Accepted answer
4 votes

Simply naming the size in the functions file is not enough to get the sizes to work: To call a custom size that you added do this: <?php the_post_thumbnail('category'); ?> I see you ...

View answer
Custom post type, permalinks & pagination, going wrong
Accepted answer
3 votes

Make sure your query has paged in it like so: query_posts('post_type=fotolog' . '&paged=' . get_query_var('paged')); Check to be sure that you don't have page and a post type with the same ...

View answer
Adding HTML to the Header, Screws up in IE7
Accepted answer
3 votes

Write a stylesheet just for ie7 and link it in wordpress like so: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie7.css" /&...

View answer
Comment Link from get_comments()?
Accepted answer
3 votes

You're really close! Add #comment-<?php comment_id(); ?>to the href to append the anchor link <a href="<?php echo get_permalink($comment->comment_post_ID);?>#comment-<?php ...

View answer
How can I set a draft page as parent without publishing?
3 votes

There is one way to do this, but it's kind of wonky. Instead of not publishing the page, you can hide the content. Make a theme template named HidePageTemplate.php. On the page you want hidden ...

View answer
Best portfolio/gallery/carousel slideshow plugin with thickbox?
2 votes

welcome to WordPress Stack Exchange! Personally I don't like most of the gallery plugins out there, they're either too bloated or don't utilize the attachment/gallery functionality. I would use ...

View answer
Lose "Blog Archive" from page title
Accepted answer
2 votes

I just realized that you're talking about the browser "title" at the top; that wasn't clear from your original post Go into your header.php and at the top look for this line <title><?php ...

View answer
How to make the post summary taller?
2 votes

You can either manually enter content into the_excerpt section or use this code in your functions.php file in your theme function custom_excerpt_length( $length ) { return 200; } add_filter( '...

View answer
List Child Categorie and hide the parent
2 votes

You need to add &title_li= to your code like so to remove the word "Categories": <?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=5&title_li='); ?...

View answer
How to provide support for [gallery] shortcode?
Accepted answer
2 votes

Have you added any images to the page in which you are using the gallery? The [gallery] shortcode won't work without there actually being attachments on said post.

View answer
Replacing the default content created while the site creation
Accepted answer
2 votes

I can only answer your first two questions as I do not know anything about multisites. The default comment and content in the 'About Us" page is not coming from the theme files, but rather the ...

View answer
Home page is redirecting to another page - no obvious reason
1 votes

I think I've had this problem before, but I can't remember exactly how I fixed it. Check a few things: Did you recently or ever make a template/theme file called home.php? That can mess up wordpress ...

View answer
Showing only certain buttons on tinymice content editor
1 votes

With the tinyMCE advanced plugin you can control many aspects of the tinyMCE editor. You can add options, remove options and rearrange them as well. The plugin can be downloaded here: http://...

View answer
How to fix 404 page error on theme
Accepted answer
1 votes

So I think you're problem is the quotes in the href inside your function. Try escaping them like this and it should be fixed. <p><?php _e("Sorry but, you are looking for something that ...

View answer
highslide is overlapped
Accepted answer
1 votes

The problem you have is not with highslide, but rather with your youtube embed. You need to add <param name="wmode" value="transparent"> to the object tag and wmode="transparent" to the embed ...

View answer
sort events based on event date custom field
Accepted answer
1 votes

You need to use the meta_key to sort your events in your array. Like so: <?php $loop = new WP_Query( array( 'post_type' => 'kurs', 'meta_key' => 'dato', 'order_by' => 'meta_value', 'order'...

View answer
query_posts exclude a meta key
1 votes

I haven't tried this, but some research let me to this. Using meta_compare you can check if meta_value does not equal 1 display the posts. <?php query_posts(array('showposts' => 1000, '...

View answer
wordpress query_posts featured page always on top
Accepted answer
1 votes

In your query posts array add this: 'meta_key' => (meta key name in database), 'meta_value' => 1 To make it at the top use two queries. One for the top first post and one for the rest of the ...

View answer
Transferring theme and imported post attachments
1 votes

If I read correctly it's not just your custom meta but also your attachments (all images, videos, media, etc) Do you have phpmyadmin? Do an export of the database and do a search for "http://...

View answer
What are people using for displaying Image / Media copyright information?
1 votes

You could use the description or caption part of the image editor/uploader and then query that for each image. To clarify what I mean read my the post I wrote at my blog for creating a sideshow in ...

View answer
Override the default number of posts to show for a single loop?
0 votes

Sure, change the query by adding <?php query_posts('post_type=post&numberposts=-1'); ?>

View answer
How to call a custom post with get_posts() instead of query_posts()?
0 votes

You can use either really, but if you want to use get_posts this is how it's done: <?php query_posts('post_type=games&posts_per_page=10'); ?> <?php if(have_posts()) : while (have_posts() ...

View answer
How to make a list that displays the top level subpages, and any subpages or siblings off of the current page
0 votes

I actually had to do this once. You can do it without a plugin and without javascript. You might have to tweak it a little to work exactly as you need it but it should give you the right idea; ...

View answer