wordpress

MySql post archives. What's the best way to handle massive archived posts that need to be kept?

If my wordpress site generates thousands(perhaps millions) of posts a day, what is the best way to keep the site from taking a performance hit with posts that only need to be seen if someone searches old posts or for legal purposes? My first thought was to run a cron job during a lull and move the out-of-date posts to an archive databas...

Custom Post Type returning 404

I've got a WordPress CPT that I've had running for a couple weeks. There weren't any problems with it. In the last couple days, it's been going haywire. Every few minutes, WordPress forgets that the page exists and returns a 404 error. This can be fixed by flushing the permalink rules in the admin panel, but a few minutes later the same...

How to query posts for a custom post type in a custom taxonomy ? in wordpress 3.0

Hi, I've been looking everywhere, I'm trying to query to find the custom posts which are in this post type with a particular taxonomy value set. register_post_type('toy',$args); register_taxonomy( 'age_group', 'toy', array( 'query_var' => true, 'hierarchical' => true, 'label' => __('Age Group') ) ); How can I do this? I tried th...

Prototype and Ajax Search in Wordpress

So I got this code from http://www.elliotswan.com/2007/06/27/better-than-live-ajax-wordpress-ready-search-version-2/ and it works great for live search. The problem I'm having is that when a new search is made while there are results shown it should bindup the results, change to the new results, and then binddown the list of new results....

Custom image upload field in WordPress

I'm developing a custom image upload field in WordPress, but I'm having a ton of difficulty dealing with the image once it's been uploaded. In addition to the upload, I need to resize the image to use a thumbnail. Every time I try to work with the uploaded image, I get an error to do with being unable to find the file (even though I can ...

Why my wordpress plugin settings shows up for users other than administrator?

I have a plugin installed in my wordpress site which allows user logins as contributor. But the settings tab for this plugin appears even if user logins as contributors. Is there a quick way to make sure the plugin settings appear only for administrators? ...

Is there a way to redirect users who are not administrator from wordpresss wp-admin?

Users can register as contributor to my wordpress website. But the registered users can go to www.website.com/wp-admin and login and get to admin page. I know they have very less capabilities but still i want to redirect them to the index page or someother page in the site. Is there a way to do it? ...

How do I use colorbox to show hidden divs on my page without hardcoding?

I'm using Colorbox to show the html content of hidden divs on my page. I can get this to work perfectly with the following: $("a.colorbox").colorbox({width:"600px", inline:true, href:"#344"}); This will show the div with the ID of 344. However, because I'm trying to build a scalable and dynamic page with WordPress, I want to be able...

very odd 404 on wp-admin directory

I just moved my wordpress install from my older server to a new one which has CPanel installed. The site is working fine on the front end and if i am not logged in the wp-admin redirects me to the login page but as soon as i sign in i get a 404 error on the directory. i've checked file permissions, did a chmod recursivly to 755 then test...

[Plugin: WP-Table Reloaded] Data Export

Hi, I recently moved my WordPress site from my Mac OS X to Windows XP and before my site url was http://localhost:8888 on Mac and now is just http://localhost. After exporting the WP-Table Reloaded dump file from plugin options from my Mac, I viewed the dump file and noticed that it had the path http://localhost:8888, which is not corr...

php scripts will not execute in browser

I'm trying to install wordpress...The install script will not run in firefox or chrome. I'm on ubuntu. I only get an option for downloading the file in both browsers. Any thoughts? EDIT: Do I need to install libapache2-mod-php5? ...

JS Lightbox for pictures which I want to link to the article the picture is from

Hey guys, I'm using WordPress as my CMS and I just downloaded a Lightbox plugin for a photo gallery on one of my pages. It works exactly how I want it to, except for one thing. After clicking on a thumbnail to get the photo enlarged with a lightbox effect, I want to be able to click on a link to take me to the main article where that p...

Wordpress cron problems

I'm having problems with Wordpress' internal cron system. For some odd reason, it seems that Wordpress is killing off the process before it is even finished. I am aware of some kind of fix in wp-cron.php and that I should change the timeout from 0.01 to something else, however this has not helped with the issue. My cron job can at time...

most stable / useful way to blog in Magento

Various approaches I am aware of: Theme to match (fake integration) Lazzymonk's Wordpress integration Make the Magento header and footer appear over WP blog. Mage Enabler and the AW alternative: ...any feedback on these in real world implementation and use is much appreciated. ...

Wordpress 3.0 Register/Login Menu Button

Hi, I'm quite new to Wordpress and don't quite understand one simple problem that I have come across when working with the menu tool. I simply want to have the "register" and "login" buttons when the user is not logged in, and show a "profile" and "logout" buttons when they are, and with the theme I am using the login and register butto...

Show Authors and excerpt of their last post in a list

Hi All, I've search everywhere but haven't found what I'mlooking for even though I'm convinced there must be a solution floating around since it's obviously such a common request: I want to display a list of authors with a short excerpt of their latest post. I have a list of Authors with their images (using the 'Author Avatars List') ...

Get all posts starting with an alphabet in wordpress

I'm trying to create directory listing in which at the top there will be links...from a-z some what like this: A B C D E ...............V W X Y Z When a user presses on A, all the posts with titles starting with A should come, whats the best approach to achieve this? ...

intergrating a MVC (php) Framework with a CMS

Is there a way to build a large-scale, multi-user (meaning users can register and login) web application / website with a php framework like symfony (MVC pattern) and intergrate a CMS like wordpress to manage the site? My desired goal is to use wordpress to manage the content of the site, and quickly and easily add new features to site ...

How to integrate Disqus plugin for WordPress with JQuery Ajaxed content?

I have implemented JQuery Ajax for dynamic content retrieval for my WordPress blog. But now I have a problem with DISQUS plugin, it just do not load anymore, because page is not reloading. For other small scripts I have used LiveQuery plugin for JQuery and it worked out well, but DISQUS is too complicated for me. Maybe someone could give...

is_subcategory(); function for wordpress

hi i know there are many nice functions in wordpress like is_page(), is_single(), is_category();... do u know how i can create a is_subcategory() function? thanks a million. ...