0
votes
1answer
299 views

help intercepting save_post through plugin

I use stackoverflow very often and just found out in google about this one, Nice :D Well, i want to save my every post i write from wordpress to my 3rd (OEXChangeble) website aswell at the same time, ...
0
votes
3answers
648 views

How to add logo in Thematic

I've done my sharing of hacking themes before, especially to replace the site title with a logo, but for newest thematic theme, I can't figure out where to edit the code to add my logo. I've checked ...
0
votes
1answer
415 views

Post edit screen: How to check if meta_box is registered?

I got some custom post types where i deregistered the "title" meta box. Now i always get "Auto Draft" as title. To avoid this i'd like to add the name of a taxonomy as the title. But how would i check ...
1
vote
1answer
2k views

Find out if a page has no parent

Hay, have a basic menu looking like this Item 1 Item 1.1 Item 1.1.1 Item 1.1.2 Item 1.2 Item 2 Item 2.1 I'm outputting this as a list using WordPresses "wp_list_pages()" ...
0
votes
2answers
116 views

WordPress echoing content in seemingly random place

I have been building a series of theme pages. On one page a users messages (post_type=messages) come in in a tab on the page. The content is displayed in place as is the title etc.... The content is ...
2
votes
1answer
2k views

Custom post admin filtering by post meta (the date)

I've created a custom post type for events that uses a custom field to retrieve the date for the event. It works ok and I'm able to filter the displayed results using meta_compare to compare the date ...
0
votes
1answer
286 views

unregister a sidebar widget

The codex says it is depreciated. As a long time plugin user, I know how annoying it is when plugins don't clean up after themselves, is it's deprecation indication that it is necessary?
2
votes
2answers
2k views

Sticky post for each category on category pages

I think the title is self explanitory. I would like to show category.php a post I set as sticky post for that category. Do you know a good plugin or a code to do this? Thanks, Sarit
1
vote
2answers
308 views

Can only get one of two custom menus to display

I'm a wordpress beginner and at the moment struggling to get to grips with custom menus. I have created two menus. Wordpress tells me the theme supports two menus. I have <?php ...
3
votes
2answers
4k views

Navigation menu with children shown only for current page

I've been playing around with Wordpress' menu functionality (wp_nav_menu and wp_list_pages) to build a menu for my site. It's coming along, but I'm still having some trouble getting the behaviour I'd ...
0
votes
2answers
919 views

How can i link a custom post type thumbnail to intermediate size

I'm trying to build a picture gallery with custom post type in my theme and I think i figure it out almost everything but the call in the template, I already have the custom post type in the ...
0
votes
1answer
1k views

outputting posts' taxonomies: cant get 'get_the_taxonomies' working

I want to output the taxonomies associated with a post in a 'title' attribute, so it needs to be unformatted. I know about get_terms and get_terms_list, but the problem is that you need to provide ...
1
vote
1answer
365 views

WordPress and bbPress Login conflicts?

For some reason, if I log into my WordPress dashboard, I get logged out of my bbPress forum. When I log into my bbPress forum, I get logged out of WordPress. I followed all of the instructions ...
4
votes
4answers
171 views

Core framework/helpers for logging stuff?

I'm writing two plugins at the moment which need to (optionally) log stuff...lots of stuff...somewhere. Since i don't like the 'you need to have proper permissions in this and that folder' messages of ...
0
votes
1answer
89 views

Is there a Wordpress plugin (or perhaps a Facebook social plugin) which enables users to like posts, comments, and replies?

Basically, it should be a plugin that allows users to like differents elements on the page: posts, comments and replies (bbPress). Any suggestions?
0
votes
1answer
955 views

How do I use add_action on custom widget?

First hope you will take a look example widget http://pastebin.com/2cL7BmgF There have male and female option. Let say I select male and I want add male.css to wp_head When I put something like this ...
2
votes
1answer
808 views

How to change title attribute returned by comments_popup_link()?

I can change label of comments by altering Comment(s) from parameter of following function: comments_popup_link('No Comments;', '1 Comment;', '% Comments;'); But, seems that title attribute is ...
1
vote
3answers
10k views

How to display custom taxonomies in posts?

Almost all themes display categories (with its permalink) by default. I am looking for similar type of code to add in my theme. From where can I get it? To create custom taxonomies, I'm using More ...
0
votes
1answer
158 views

How to change my URL on intranet

I have a WordPress blog installed on my machine. I got a strange requirement from my team but I don't know how I should implement it: blog pages should be segregated under "blog/" or a similar ...
4
votes
4answers
1k views

What is the best way to load the WP environment in a subdomain of my multisite Wordpress install?

I have a subfolder install of WP multisite, let's say at "domain.com". I now need to load the WP environment in subdomains of domain.com, say "sub1.domain.com", "sub2.domain.com", ... ...
1
vote
1answer
181 views

display span element if in certain post types

On lines 4-6, I've inserted three conditional statements to determine which post type the post is in so I can insert a span which I will use to insert an image. The way I wrote it isn't working. What ...
1
vote
3answers
574 views

Ajax with OOP doesn't work

I have a small script within theme's functions.php file that uses ajax, principle like this: add_action('admin_head', 'rw_script'); function rw_script() { echo ' <script ...
2
votes
1answer
1k views

Post loop created via shortcode not displaying shortcode in content

I've been racking my brain on this. Here is a shortcode loop I've created to display a specific post type: function faq_shortcode($atts, $content = NULL) { extract(shortcode_atts(array( ...
-1
votes
9answers
14k views

How to move wp-admin login page to another location?

It can be another layer of security..
3
votes
1answer
2k views

wp-admin - save options without refreshing?

I have my own plugin options page, but when users hit "Save" button the whole page refreshes. Is there a way of changing my script below to something that will for example popup yellow box saying ...
0
votes
2answers
595 views

Setting up a members area

I am trying to set-up a members area on a site, I have already come up with one solution but was wondering if anyone one knows of an easier or better way to go about it. The problem is the user ...
2
votes
2answers
1k views

How to call shortcode function directly and pass $atts

I am using the Media Library Categories plugin. It does not have much documentation, so I have concluded the way to implement it would be using the shortcode [mediacategories categories="6"]. I want ...
1
vote
1answer
833 views

wp_reset_query equivalent for WP Ecommerce

I'm having product duplication issues while running two loops on a single page. Is there an equivalent to wp_reset_query for wp ecommerce? You can see the site at ...
1
vote
2answers
955 views

Automatic Refresh all posts at once

I created a function to save custom fields on publish a post. Something like this. function create_fields() { global $post; $casa_id = $post->ID; ...
0
votes
1answer
173 views

Anyway to convert a plugin to become a shortcode?

is there any (easy) way to convert an existing plugin to become shortcode instead? http://wordpress.org/extend/plugins/rax-top-social-media-share-with-counter/ I want to place it's output ...
4
votes
7answers
11k views

How to use relative links on my pages?

In my web pages I want to use relative links instead of absolute links. However, pages do not allow php code inside them, so i cannot do to from a url in a relative manner. How does one get ...
1
vote
1answer
263 views

How do I create a form to search a custom post type

Basically how would I create a form to search only within a custom post type?
3
votes
5answers
802 views

Best WP cache plugin for large site

I'm looking for WP cache plugin which is able to handle large number of pages. approx. 1 mil. I'm considering W3 total cache , WP super cache and few more , unfortunately I don't know which one is the ...
0
votes
2answers
312 views

Conditional statement not working in function

Why doesnt this work ? I am trying to selectively load scripts but the second if statement is not loading them where it should. function my_init() { if (!is_admin()) { ...
5
votes
4answers
8k views

Add Class to Specific Link in Custom Menu

I know you can add a class in the custom menu options, but it adds it to the LI before the A. I want to apply the class directly to this specific A rather then the whole LI. So instead of the output ...
1
vote
1answer
686 views

Multiple plugins using the same OAuth class issues

I just updated a plugin that needed to be updated. The issue is they added support for OAuth, the problem this plugin and another are using the same OAuth classes. Is there a easy way to fix this? ...
2
votes
2answers
2k views

WP Insert Post function - Insert Post Thumbnail

Whilst performing wp_insert_post, how would one insert the post thumbnail. I tried the code below to no avail. $postit = array( 'post_title' => $itemtitle, 'post_content' => '', ...
1
vote
2answers
2k views

how do I display a featured image in a post type?

I have a single-posttype.php and I'm trying to figure out how to display the image
1
vote
1answer
169 views

show the meta values to visitors that collected via coment form

in stackoverflow (here) there is a solution for collecting extra information from visitors, and i want to ask that, is it possible to show the collected information to other visitors in his/her ...
3
votes
4answers
17k views

Custom Post Types on Category Pages

I'm working with a custom post type that uses the normal WordPress categories. I am able to modify my category template to display my custom post types exactly how I want them. The problem is, once ...
1
vote
1answer
723 views

Author custom fields post meta, the code?

If I wanted to get a custom field of the current user I would use something like this. <?php echo get_user_meta($user_info->ID,'address_line_2',true);?> This time however I want the author so ...
1
vote
5answers
210 views

Dynamic widgets

In wordpress is it possible to have different widgets on different pages, I mean, I am having a form widget which has to be just displayed on posts page, it should just display on single.php Is this ...
2
votes
2answers
526 views

How do I troubleshoot responses with WP HTTP API?

I make a GET call to API, call is supposed to return no data: browser (and sniffer) give me 200-OK response with null text as body; wp_remote_get() gives me 200-OK response with string of binary ...
0
votes
3answers
281 views

Include related posts on a page

i've got several posts which are tagged with "design", but also a page called "design". my question: i put some text into the design-page and would then display all posts which are tagged by ...
0
votes
1answer
135 views

Add custom fields from different posts

I am trying to add up custom fields from different posts. The array I created is not working. Here is the code. <?php $totalpricearray = ...
0
votes
3answers
438 views

Style wordpress image captions in RSS

My WordPress site includes the full article in its RSS feed. This includes the text of the post and basic formatting. It also includes post images and their captions. The problem is that my captions ...
2
votes
3answers
766 views

Using $wpdb object in a widget

I'm trying to make a very simple widget that access tables contained within the same database instance as my Wordpress database, but are not wordpress tables. I'm using the wpdb class according to the ...
0
votes
2answers
369 views

Post_type doesn't work for widgets?

I've found almost the same question: http://stackoverflow.com/questions/4796165/multiple-loops-in-wordpress-second-loop-not-resetting but the answer doesn't work for me. I have "portfolio" post type, ...
2
votes
1answer
846 views

Exclude Sticky posts from Main Query break Pagination

I have a small problem with this function ! I would like to exclude all sticky post from my query but when I do it, it breaks my pagination. In the following code, when I remove the "'post__not_in' => ...
1
vote
2answers
241 views

looking for navigation plugin (accordion)

does anyone know if there's a jQuery-navigation plugin with accordion animation which can be auto-applied to the wordpress default navigation? it should also support marking the current item (+ also ...

15 30 50 per page