wordpress

Where should I place my Easy Slider jQuery functions in my Wordpress theme?

I added Easy Slider to my Wordpress blog. The problem is that the buttons are even shown when there's a Page with no slider or pictures. I used to place this: $(document).ready(function () { //easy slider $("#slider").easySlider({ auto: true, continuous: true }); }); in a custom.js file which I placed in Wordpress's footer.php...

how to use workpress 3.0 multi sites functionality?

how to enalble wordpress 3.0 multisites and open registration to public people? ...

How can I shorten a very long string in PHP

Hi guys, I have a problem with a PHP breadcrumb function I am using, when the page name is very long, it overflows out of the box, which then looks really ugly. My question is, how can I achieve this: "This is a very long string" to "This is..." with PHP? Any other ideas on how I could handle this problem would also be appreciated, tha...

How customize wordpress for intranet purpose?

I want to use wordpress for intranet portal/blog purpose. So i want, there should be no link to internet from wordpress. No traffic should be to internet from my intranet. Like there are many link are in wordpress: help,resister,forget password etc. Please some plug-in or theme for this purpose. Thanks in Advanced Rahul Singh Rathau...

Custom Top level menu error in Wordpress Plugin

Below is the code snippet. But when I call it the top menu is repeated twice it also repeats itself in the submenu. if (!class_exists("ex")) { class ex { function ex() { //constructor } function Main() { echo "test"; } function ConfigureMenu() { add_menu_page("Ex", "ex", "manage_options", 's_ex', array('ex','Main...

Using iframes to add dynamic content to statically cached pages

I have a wordpress based site which makes use of a full page caching system. Problem is that I need to add dynamic content for logged in users. Right now I'm keeping the caching enabled for non-logged users and disabled for the logged ones via cookie check. Would inserting the dynamic content in an iframe be an acceptable solution to ex...

FooterWrap breaking box

What's up with my Footer CSS ? Using the Web Dev toolbar in Firefox I can see that it's got a box and it seems to be pushing it all down to the next line - no padding or margins that I can see.. I'm sure it's an easy fix - if someone could point out what's up that would be ace! Thanks guys! Website is here for Love Jungle Clot...

Wordpress: Display "Edit Profile" link to author only.

I have a WordPress website with a custom theme. I'm using custom author template page to display a public "profile" of the user's page. I want to show a link to the edit page (I have a template for that too) to ONLY the logged in user who is also that particular author. I have the following code, but it shows the edit link to ALL logg...

Stop Wordpress from automatically inserting scripts

Is there a way to stop Wordpress from automatically inserting scripts into my theme from wp-includes/js? It's kind of annoying that I can use/choose to add my own. Thanks! Actually it's not including the jquery but scriptaculous.js and effects.js and for some reason they're interfering with jquery. Would it be the same just putting: ...

Get list of all posts (not pages)

I'd like to create a drop down menu with all posts currently on my site using Wordpress 3.0. How can I fetch this data from the database using the wordpress API? ...

Fetch all of wordpress (less header/footer) into magento. I can only get the posts.

Hey guys. I used this: http://inchoo.net/wordpress/how-to-use-wordpress-home-page-in-magento-home-page-cms-page/comment-page-1/#comment-8020 to accomplish getting my wordpress to show some info inside magento (blog posts) but I can not understand how to pull in the entire page. The only part I don't want is the header and footer. A...

Including a wp-lang file to define WPLANG according to user's choice (Wordpress)?

In this previous questions, someone told me how to make WPLANG clickleable, so that the user can choose his preferred language (usually you can only define WPLANG by modifying the wp-config). But I'm sure how to make the link. Are the following functions giving me the possibility of using example/?lang= Or example/en? *wp-lang.php s...

How to move the posts index page in Wordpress to another file rather than index.php?

The index page in Wordpress show all the posts (without comments). I would like to make the index.php a static page (not a blog), I already done that. But I don't know how to move the index of posts to other page (say blog.php). Any suggestions? ...

I can't modify the template i assigned to the Posts page (Wordpress)

I created 2 files: home.php and blog.php. The first one is set to be my Front Page and the later to be the Posts page. When I modify home.php I can see the changes (for instance deleting the sidebar). But when I try to modify blog.php nothing happens. Do I have to modify other .php file in order to see changes in the Blog (Posts page) p...

Include post in page (wordpress)

I like to know if there is a way to include post INLINE in the editor in wordpress Here is an example as i like it to work : bla bla bla... pic pic pic.. bla bla bla {get_me_the_post_number(245)} more bla bla bla more picture... So that can make my life easier that tweaking the template or getting the widget to work.. in fact i lookin...

Forcing a trailing slash to a URL after a subdomain rewrite

Hi There, I'm re-writing a subdomain to a 'folder' - actually a page in wordpress, and this all seems to be working correctly. I don't want the address in the URL bar to change though. Everything works fine unless the user does not put a trailing slash after the page name, then the page is still redirected to the correct URL but the U...

MYSQL - Multiple Select and LIKE Method

What i want is: Get posts with date greater then 2010-03-02 and with the meta_value 'something' + like '2010-' because there are other values like 239048192304 or 293811743 $query = "SELECT DISTINCT wp_postmeta.meta_key, wp_postmeta.meta_value, wp_posts.ID, wp_posts.guid, wp_postmeta.post_id, wp_posts.post_title FROM wp_postmeta INNER ...

Which one is wordpress cron files to run?

Im trying to find which one is the cron file?, so that I can run it from other server. But Wordpress has 2 files with name "cron": wp-cron.php wp-includes/cron.php Its confusing. Even after searching, Im failed to find discussion about that 2 files. ...

wordpress - function to display posts from a category group by year

I work with a function (from a plugin) to display post from a category category group by year, but I can´t filter to category. I try add " $posts = query_posts($query_string . '&cat=3');" but I got all categories. How can I do it? The function: function favrik_recent_posts($args = '') { global $wp_locale, $wpdb; // params fun parse_st...

custom field template... file upload problem

Hi Gyus, I am facing problems with custom field template. it is not uploading the custom image file to the latest path, and tries to fetch from the path it stores in db. which is wp-content/uploads/2010/06/ but it doesnt upload the file here. any help, thanks in advanced. Regards, Farrukh ...