All Questions

0
votes
1answer
824 views

How to get blog-id of an MU site from functions.php

How can one determine, from functions.php, the blog-id of the site (or alternately, the path to the media directory)?
2
votes
1answer
98 views

How to test for MU via functions.php?

What is the call to determine, from a theme's functions.php whether the site is an MU site or not? Updated with answer: $dir = is_multisite() ? 'wp-content/blogs.dir/'.$current_site->blog_id.'/...
0
votes
2answers
639 views

Creating a job board using WordPress (for free)? [closed]

I found several plugins/themes for creating a job board with WordPress, but only one solution which is free (see here) Are there any other free solutions for doing that?
2
votes
1answer
2k views

How do I pass variables into short-code enabled Post Snippets in Wordpress 3.0?

I am using a plugin called Post Snippets. According to the documentation, it can substitute variables, such as {url} within the snippets. http://wordpress.org/extend/plugins/post-snippets/ I am ...
3
votes
1answer
993 views

How to set up sub-categories for author pages?

I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc). I know that ...
0
votes
2answers
937 views

Where do files uploaded via Media Manager get stored in MU?

Standard WordPress sites, at least of the versions of WP I've tested, store files uploaded via the Media Manager under wp-content/uploads/ Where do these same files get stored in MU sites and how can ...
12
votes
4answers
4k views

Override default url for author pages?

So the default url to display a list of posts by a particular author looks like this: http://domain.com/author/{username} I am wondering how to change the 'author' in that url to something else? I ...
2
votes
1answer
290 views

Highlight Author Comments issues

So a few days ago I added the following code to Geek for Him and obviously missed the nested comments portion. This is implemented on many other sites of mine, without Standard Theme of coarse and ...
0
votes
2answers
531 views

Encoding Method for URLs?

Is there a method or API that WordPress uses to encode the URLs similar to how it generates part of the URL when using the title in the URL? I am writing a plugin that generates URLs and would like to ...
0
votes
1answer
240 views

Problems with wierd characters and my plugin

There are special characters that can cause problems in word press, like the infamous microsoft word smart quotes. However, there are many that are captured and dealt with. My collegue and I have ...
1
vote
3answers
7k views

Use a wordpress page to display a certain category

I'm trying to set up a portfolio page on my wordpress website, and I would like the following construct: /blog/ where I blog all kinds of things, including portfolio entries /portfolio/ where I show ...
2
votes
2answers
4k views

How to tell if the user is an admin?

I need to show some info only to admins visiting a page, so I need a conditional tag to identify them. So far I have found: <?php if ( current_user_can('manage_options') ): ?> is this the ...
1
vote
5answers
331 views

What do I need jQuery for?

What do you think of killing jQuery in the public facing WP site? Isn't it useless and making for slower page loading? What's the best way to get rid of it?
2
votes
3answers
4k views

get next next post in single.php

I really need your help. in my single.php I had to get the next post in the same category (which i already have by: $in_same_cat = true; $excluded_categories = ''; $previous = false; $next_post =...
0
votes
3answers
457 views

Wordpress Multisite: Set template languages for a domain?

I have two domains set up in a Wordpress 3 Multisite blog. One of them is supposed to be in Swedish and the other in English. The template contains some texts that I want to translate for the ...
2
votes
2answers
172 views

Similar posts formatting

I'm using the similar posts plugin http://wordpress.org/extend/plugins/similar-posts/, and I want the similar posts to show on the same line instead of as a list... like link 1, link 2, link 3, link ...
0
votes
2answers
3k views

How can I change how my tag pages display?

Ok, I'm using the TagCloudShortCode plugin. I have a problem with how my tag pages display.... I want them to display the way they show on my main page, with the image and more button... how do I ...
1
vote
1answer
212 views

Missing sidebar parameter “fix” - before_content

as you know the sidebar parameters from register_sidebar() that control the widget layout are - before_widget - after_widget - before_title - after_title the problem is that you cannot implement ...
1
vote
1answer
1k views

Adding new row to wp_post table

I want to add 2 more rows (for voting up or down) to my default wordpress posts table. Would those rows be deleted when I update my WP version, or cause any other problem? An alternative would be to ...
0
votes
3answers
481 views

Custom post types or not custom post types?

I currently have a webside called storelocator.no. Here you can search for a brand, and you can see what stores sells this brand. Clicking a store, you will see what brands this store has. Currently ...
0
votes
1answer
538 views

INSERT in table row fatal error

I just discovered this wonderful message board :-) Hopefully someone can help me with a Wordpress issue I can't figure out.. I added a hook to my plugin file to insert the post id of the immediate ...
9
votes
5answers
91k views

how to query posts by category and tag?

I am trying to show a list of posts that are related to category X and tag Y. I've tried the following code: $args = array( 'posts_per_page' => 4, 'tag_id' => $tag_id, 'cat' => $...
1
vote
1answer
260 views

renew plugin advanced search [closed]

I'm use advanced search plugin in my site. http://www.zirona.com/software/wordpress-advanced-search/ now I'm upgrade site and advanced search not worked! :( creator plugin not update for wordpress 3 ...
1
vote
2answers
3k views

Query posts by category AND custom field, then ORDERBY another custom field - help!

OK I need to query posts using the following criteria: category_name=office, meta_key=featured_post, meta_value=Yes and order these results using a second custom field which has a numerical value ...
5
votes
2answers
3k views

Search in Wordpress - Difference of searchpage.php, searchform.php and search.php?

I'm sorry for this scholar question, but I'm totaly confused with search in Wordpress. What is the difference beetwen searchpage.php, searchform.php and search.php? Could anybody tell me how it all ...
45
votes
6answers
60k views

allow editors to edit menus?

I would like to be able to grant my editors the power to change the menu, can this be done? The appearance tab doesn't appear to be an option at all, can I make it so?
4
votes
1answer
5k views

How to redirect after login, the working way?

I've tried everything: Peter's Login Redirect, Redirection, some unworking javascript hacks, routemap PHP Class (which is really impressive, but I'm not sure that's very useful in this case). I'm ...
1
vote
1answer
1k views

Post thumbnails in sidebar & footer?

I have a category in my blog called "work", and I will be assigning each post a thumbnail. This category will be excluded from my blog's navigation, but added as a fake page on my page nav bar. ...
15
votes
4answers
12k views

Can the default “post tags” taxonomy be renamed?

I'm intending to use the default "post tags" taxonomy to provide a common set of tags across posts and 2 custom post types (to allow for collection/aggregation by tag). I'd like to rename the "post ...
1
vote
2answers
133 views

Weird problems after recovery from security breach

The shared server that I used for hosting my WordPress website was hacked recently, and many of the index.php files, plugin files and uploads were deleted, with my MySQL databases untouched. But after ...
3
votes
2answers
2k views

How do I create multiple post types in same menu section in WP-admin?

I am building a custom menu section (a new item with subitems in the main menu section on the left side) in the WordPress Administration of my website. The section shall include a main post type, and ...
0
votes
2answers
973 views

query_posts meta_key with current date

How to query Post with current date month with custom field: Here is my code <?php global $wp_query; $event_month = get_post_meta($wp_query->post->ID, 'eventdate', true); //...
4
votes
5answers
9k views

How to Show Different Sidebars on Specific Pages?

I'm making a blog where only on specific pages I want to show different sidebar, I will add some widgets to those sidebar, which I don't want to show in default sidebar. I've found a coding method to ...
1
vote
1answer
299 views

Creating Search Engine Friendly URL's with Word Press

I own a website barrelandblade.com which was developed by a non SEO enlightened developer. I recently had the FV All in One SEO Pack installed as my site does not show up in the search engines at all. ...
1
vote
1answer
3k views

Formating the display of a post's date, outside the Loop

I'm using this function to be able to retrieve several data, from outside the Loop: function get_post_data($postId) { global $wpdb; return $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ...
6
votes
1answer
2k views

How Is Network Activate Different From Activate (by Implementation)?

How is plugin network activate different from normal activation by implementation? What is done/not done in network activation that is done/not done in activation?
0
votes
1answer
898 views

Link a custom post type child to a parent using dropdown

I've got a custom post type called wine, this will be the main type, I also have a custom post type called review, I want to be able to associate multiple reviews with a wine and have this controlled ...
0
votes
4answers
1k views

Trick to get custom post types to show up on a custom taxonomy page?

I've setup a custom post type and a custom taxonomy for that post type, but I'm having one problem - on the custom taxonomy permalink pages, the content of the custom post that should be there is not ...
2
votes
1answer
608 views

Redirects from Tumblr to new WP

I migrated a site from Tumblr to WordPress and was able to get all the content over (in pieces) using the FeedWordPress plugin. What I am now trying to do is get the old permalink structure to ...
2
votes
2answers
9k views

sharing video on facebook from wordpress

When a user tries to share a page with an embedded video on it only the title of the pages shows up on their facebook status and not the flash video player. This happens while sharing with the ...
2
votes
2answers
67 views

update Semiologic?

I usually wait for Denis to let us know when to upgrade to the next SP and WP version.. Anyone know? Thanks Miami
3
votes
2answers
3k views

How can I prevent uploading bmp image?

I need to prevent uploading bmp image for user. How can it be possible?
2
votes
2answers
140 views

Unified Approach for Placing Option Pages

Currently, it is up to any plugin's author as to where to put a link to the plugin's option page. I have seen at least the following "solutions": Plugin list Dashboard menu Plugins menu Appearance ...
9
votes
4answers
2k views

Is there a WordPress plugin that registers a plugin file as a custom page template?

I need to create a plugin that makes custom page templates available in wp-admin. I'm wondering if someone has tackled this already, as it seems like a pretty typical process?
2
votes
1answer
598 views

How to handle the Plugin Version on Update using Tortoise SVN and the worpdress.org Plugin Repository?

Recently I tried to update my plugin to WP server. The update to trunk folder went fine, but when I created a folder with a new version under tags folder and tried to upload it, only the immediate ...
0
votes
3answers
2k views

Correctly implementing the Facebook Like button

As per documentation I satisfied all the requirements of the like button by using the meta-tags, however I still don't get the image I would like linked by Facebook: it always goes fishing for another ...
9
votes
1answer
5k views

custom taxonomy and pages rewrite slug conflict gives 404

I'm using the Custom Post Type UI plugin to create my custom taxonomies. I have a portfolio that is made up of projects (custom post type) with 2 custom taxonomies of technologies and clients. The ...
0
votes
1answer
443 views

How to replace “Password Protected” text with icon in Admin

In Wordpress, whenever a post is password protected the backend admin area appends the text in bold "- Password protected" after the post title. What I am looking for is a way to remove this text and ...
7
votes
3answers
519 views

The Essential WordPress Websites / Weblogs? [closed]

I am looking for the essential weblogs / references / sites to place in my bookmark collection / sidebar. Is it possible that add a) either a link to existing bookmark collections b) additional sites ...
1
vote
1answer
5k views

Showing Thumbnail from Previous and Next Posts

Is there a simple way to use the post thumbnail when calling previous_post_link() and next_post_link()?

15 30 50 per page