All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

display tag slug as class per link in tag cloud

I would like to filter wp_generate_tag_cloud so each of the tag links include the slug as a class. More specifically, I would like to output "tag-" + the tag slug. Currently what is assigned as the ...
2
votes
1answer
147 views

Template Page Content Made Searchable

I'm migrating a client site over to a WordPress CMS. I made templates for each of the pages that would have static content: about us, facility, FAQs, etc. The problem is that this content seems to be ...
0
votes
1answer
4k views

Query pages by category

Trying to query pages based on the category they are associated with. I am passing in the cat_ID, but it doesn't seem to be working. Always returns a single post with the title "Hello World" while ...
9
votes
4answers
32k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
0
votes
2answers
3k views

the_content() returning null in one category only, even though there is content

A friend's heavily customized blog has a category with a specific categoryname-single.php file to display posts. Apparently for no special reason, since yesterday, the_content() is not returning any ...
0
votes
1answer
3k views

wp_insert_post hook for a wordpress plugin

I'm trying to make a wordpress plugin to auto-translate posts just before it's inserted, it's for a specific need where I want to write in a language, post in a different one, so far, I'm not able to ...
1
vote
2answers
16k views

How do i change the footer?

I downloaded a free theme and I changed everything except the footer I can't change it. I opened the file footer.php and there was only written as shown: </div><!-- /content-wrapper --> &...
1
vote
3answers
16k views

Set max title length - similar to excerpt length for outside of single.php

I've been searching for a code snippet that lets me limit the title length similar to what you can to with the_excerpt and then just display "(...)" if the title is too long. I'd like to use that in ...
0
votes
1answer
241 views

Multisite sites output on a single page

Basically I have a multisite setup where each site is just one single page (each has a different theme). How can I output that page content of any site on a page of the main site programmatically? ...
2
votes
1answer
305 views

Why don't I see pingbacks?

I installed two WordPress instances on my site. One is wp1.site.com and the other is wp2.site.com. Now, I made a post on wp1 and then linked to it on wp2. I didn't see anything about pingbacks. I ...
17
votes
6answers
19k views

Theme localization of “slugs” (custom post types, taxonomies)

in my theme I want to define a series of custom post types and custom taxonomies, each one having its own customized slug; the base language of my theme is english, therefore the slugs will be in ...
1
vote
1answer
1k views

Localization: Textdomain of Child teme

I am creating a series of WP child themes which are dependent of a parent theme which I will be using as a framework. I need to have these themes (both parent and children) localized. from http://...
16
votes
4answers
58k views

Default archive URL wordpress

In wordpress you have a few 'default' archive URL's. Like for example: http://www.mydomain.com/2011/ generates an overview of the posts of (only) that year. If you have an category blogs the url http:...
2
votes
2answers
111 views

Download all Wordpress.com available themes, somewhere?

I am looking for a website, or a way to find and download all Wordpress.com available themes for my WPMU website. I have searched for some on http://wordpress.org/extend/themes/ but they don't seem to ...
1
vote
2answers
3k views

Passing form inputs into multi-taxonomy query

I'm in the process of building out a search page to perform a query on a custom post type and its associated meta and taxonomy. Eventually, I would it to query multiple taxonomies as well as compare ...
0
votes
2answers
479 views

Conditional Tags and Echo HTML / divs or CSS and Display: none?

If I wanted to show a slider on the home page only, is it better or does it make a difference if I: use a PHP if/then statement and echo a division and markup, or use CSS along with a body class and ...
0
votes
1answer
2k views

How to import media from folder as opposed from old site?

I don't have access to my old blog any more. However, I do have all the files (wordpress export and uploads folder). Now... I'm trying to import all that stuff in my new blog and unfortunately I can't ...
0
votes
2answers
218 views

Cookies in template

I need to show some part of the page only once, based on cookies. The main problem that I can set cookies only in plugin, hooking init action. I've read 20 pages of google, this site, asked 2 forums, ...
1
vote
1answer
752 views

Pagination for multiple queries for different authors on author.php

I have peculiar requirement. The author.php template is used as a profile page for the author where he can view his own posts and posts by other authors. This template has two custom loops to achieve ...
1
vote
1answer
2k views

wp_handle_upload() does not list uploaded file in the media library?

Is it supposed to? My code: if ($_POST && $_FILES) { $tmp_name = $_FILES['file']['tmp_name']; $item = $_FILES['file']; $uploads = wp_upload_dir(); if (is_writable($uploads['...
3
votes
1answer
14k views

How to display comments and comment form on custom post type?

Is it possible in wordpress to display comments and comment form on custom post type, and how to do that? Thanks in advance.
0
votes
1answer
646 views

conditional search

I am looking for help with a conditional search based on four categories/taxonomies; countries/regions/type/no of bedrooms. What I am after is a dropdown search function that when I select a specific ...
0
votes
1answer
363 views

Display smilies in Sidebar, too?

I want the smilies to be generated in my sidebar (where it shows the recent posts, comments etc.) and not being displayed as text only. I've been searching through the Wordpress Codex, Google and ...
3
votes
4answers
3k views

How to detect if a Shortcode is being called on a page?

I'm trying to push some variables to google analytics and would like to be able to detect if a shortcode has been included on a page at all. Anybody know a smart way going about this? Thank you! ...
0
votes
1answer
2k views

Tagcloud: different color for different text size

I'm using <?php wp_tag_cloud( $args ); ?> to create a tag in my sidebar. With the "args" you can style it quite a bit, even the different text size, but it doesn't seem to be possible to apply ...
0
votes
1answer
672 views

How can I set a post thumbnail image without making a featured image?

When I set a featured image, it is allways on the upper left corner of the post. Sometimes, like in this example post, I only have very few text and one image. But this image should not be on the ...
0
votes
1answer
157 views

syntax Highlighting on wordpress.com blog

I want to write code in my wordpress blog. which is hosted in wordpress.com. I need a Syntax Highlighter to show code. Can I configure/add Plugin in wordpress.com config panel ? or I do need a self ...
1
vote
2answers
838 views

What plugin will allow me to redirect 404 errors to a specific page?

What plugin will allow me to redirect 404 errors to a specific WP page...and track all 404 errors? I'd like to just use a plugin that will redirect without having to edit templates and such.
0
votes
2answers
464 views

Plugin is a widget, but I want to call it in the head, can I?

Full disclosure, PHP and Wordpress are not my specialties. I've got this plugin here -> http://wordpress.org/extend/plugins/ustream-status/ that adds a Widget that will show if my Ustream.tv channel ...
1
vote
2answers
4k views

Placing <div> tags on wordpress visual editor using shortcodes

Hello I need to have the following code on a specific page: <div class="searchbar" > <div class="searchbar-inner" > search <input type="text" id="search" /...
0
votes
1answer
191 views

Gallery Thumbnail Layout Template

Is there a way to create a template to display a gallery thumb layout? Or am I stuck with selecting a thumbnail size and rows in the upload image/gallery area and media settings area?
0
votes
1answer
4k views

Filter Loop by Custom Field Value

I'm trying to filter a loop by a custom field value. I've tried all of the suggestions on the site, but it just won't filter. This loop is being used for a custom template of an rss feed. It pulls ...
0
votes
1answer
172 views

Avoiding calls to theme-compat

I have developed my own theme as a variant of Twenty Eleven. I am trying to avoid having aria-required being printed by the comments template. For ease of maintenance I'd rather override the comment ...
0
votes
2answers
216 views

Disable category RSS Feeds on Wordpress blog with PHP

I have a Wordpress powered site and I would like to know how to disable all category based RSS feeds with PHP or even mod-rewrite if possible. Thanks
20
votes
6answers
71k views

Can I upload media to a specific folder?

By default, media uploaded through the Wordpress dashboard goes into a folder determined by the current date. For example: /wp-content/uploads/2011/09/. Once the media is uploaded I'm not seeing any ...
0
votes
1answer
333 views

How do I get category and page ID's?

I want to insert the category or page ID of the current page into my HTML so that I can use CSS to style each page based on what it is. For example, if had a category called "News" and it's ID was 5, ...
4
votes
2answers
6k views

Adding post tags to custom post types

Standard WordPress post types have "Post Tags" which can be used to "tag" posts with similar content, makes those similar posts easily accessible just by opening that particular tag page and receiving ...
0
votes
2answers
335 views

difference between querying database and using the loop

I know this is a very general question, but I have been reading tuts on both wp Query, and The Loop, and it seems that you can go either way. Am I misunderstanding this? What I think I am reading is ...
0
votes
1answer
389 views

Plug-in for reserving rooms or equipment via corporate intranet

I'm setting up a corporate intranet for a small organization of about 80 employees. I'm using WordPress running on a Linux server internally. I'd like to give users the ability to reserve ...
0
votes
1answer
685 views

Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()

i have add facebook opengraph tag now it showing error like Call to undefined function wp_get_attachment_src() Object at URL 'http://www.website.com' of type 'article' is invalid because the ...
0
votes
1answer
376 views

Save custom field types with this function…?

I found this great article (right here) about creating and saving custom fields for user profiles. The problem is that it only saves text fields. I can't save checkboxes, radio, or any other field ...
0
votes
2answers
3k views

Template Tag “template_directory” pulling wrong path

I'm working on a theme index.php and it seems that when I use the "template_directory" it is not actually pulling the url path of the file, but instead is just pulling the main domain name. So instead ...
14
votes
5answers
32k views

Page template query with WP_Query

I would like to query only pages with a certain page template with WP_Query or a function that would return the post object, but I can't find any information about that on the official codex.
3
votes
1answer
3k views

Add meta data to the menu

I encountered this problem what i thought to be one of the worlds simpliest things, I wanted to add a subtitle to the menu somethin alike this http://img4.imageshack.us/img4/7816/unled10b.png . Then i ...
1
vote
1answer
111 views

Is there a conditional tag to determine whether the post is _any_ custom post type?

We know you can do if ( is_singular( 'my-cpt' ) ) to test for a specific custom post type, but what about doing one thing if the post is a built-in post type, and another if it is not? Is it enough ...
1
vote
2answers
1k views

Why does the TwentyTen Theme sidebar <ul> have a class called 'xoxo'?

Why is the CSS class called 'xoxo'? What does it mean?
0
votes
1answer
1k views

Conditional tags help (if none, don't display anything)

Although I've read several times through the Wordpress Codex, I have difficulties to do what I want. Actually this is for certain parts of my blog, so I guess once I figure out how to do it I can make ...
0
votes
1answer
81 views

Custom rewrite rule takes place AFTER the generic category rule

I've got a custom post type defined to handle a company's distributors. It takes a post and routes it under /distributors/abc-truck-sales. I noticed that loading /distributors/ matches up to a ...
1
vote
1answer
111 views

Is there any way I can put google ads on wordpress.com? [closed]

I know they do not allow plugins on wordpress.com and hence no ads. I know I can put adds on own wordpress site hosted on my own domain. But I really like wordpress.com and the ease you can create ...
4
votes
3answers
11k views

How to display only top level posts in loop via WP_Query?

How do I set my custom loop to only show top-level posts? I have a hierarchical custom post type and the archive page shows both the parent and child posts.

15 30 50 per page