wordpress

Dynamic Page/Post on wordpress

Hello there, I'm a wordpress newbie trying to add dynamic posts and pages through get requests. Is there a better way than suggested in http://www.blogseye.com/2010/05/creating-fake-wordpress-posts-on-the-fly? Maybe one that doesn't need to check if the content exists in the database? Thanks in advance, Pedro ...

CSS priorities don't seem to working

Hello I have this in the footer file of a wordpress theme. <div class="footer"> <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <div id="icons"> <ul> <li><a href="#">Wordpress</a></li> </ul> </div> <p> ...

PHP and wordpress: Sorting Menu items

I'm working on a wordpress site, customizing the menu. I'm no php whiz, and I want the menu to sort according to the numerical order, not desc alphabetically. <div id="navigation"> <ul> <?php wp_list_pages('sort_column=post_title&sort_order=desc&title_li=&depth=1&')?> </ul> </div><!-- end id:navigation --> Any ideas how I do ...

Wordpress : URL error 404 but the page exists.

Hello, I moved my wordpress (3.0) blog to my dedicaced server. Just one thing is broken : if i set the url in worpress to be http://wwww.example.com/page?id=3 The page is correctly shown If i set the URL to be : http://wwww.example.com/about/ http://www.example.com/services/ it ends up with a 404 not found page !! Here's my...

Test if there are older posts in wordpress

I've got this function: <?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts') ); ?> It creates a link if there are older posts. How do I do something on the condition that there are no older posts? Anything I do that uses this function only seems to echo the link. ...

301 Redirect except for one person using .htaccess?

I recently migrated a WordPress site to a new server and new domain name. To redirect traffic from the old site to the new, I put in place a simple one-line .htaccess file: Redirect 301 / http://www.newsite.com/ Now, however, the client wants access to the old site. Is there a way that I can let one person in and redirect everyone else...

Close WordPress site via remote data

I have a WordPress driven website and I need to be able to close the site at a moment's notice. I need some help to work out a way to do that whereby a php script will check a remote file (xml, php, whatever) hosted on another server to check for a variable (ie. website=closed). If variable is present then close the site with a message s...

Get anchor tag text using javascript

I don't know if it is possible! Maybe my thought is also wrong. I want to invoke a search corresponding to all links in my Wordpress blog. I am using an Ajax call for my other search in this site. How can I retrieve a linking text from hypertext tag in html. eg: <a href='www.example.com'>demo</a>.here i want to get 'demo' as input. ...

WordPress: Disable "Add New" on Custom Post Type

Is there any way to disable the option of adding a new post under a Custom Post Type in WordPress (3.0)? I've looked into labels and arguments but can't find anything that would resemble such a feature. ...

cforms plugin error in wordpress

hi all, i am new to wordpress , i am using cforms II plugin in my site. i am getting following error. It seems that your ROOT directory for Wordpress is /green. cforms tried to auto-adjust its settings accordingly, however if you still encounter issues with Ajax (form submission & CAPTCHA reset) pleas...

Prevent div from collapsing while using jQuery.load

Hi, I load external content to replace a DIV. Problem is, when the ajax-loader.gif replaces the initial content the page shrinks in height and the scrollbar is likely to disappear. As soon as the external content is loaded the scrollbar reappears. That jerking takes away the smoothness. Is there a smoother way? Maybe preserve the heigh...

Wordpress: Don't show the first inserted post

So, I have some subcategories, and in each category I insert some posts, when I show the posts for each subcategory I don't want to show the FIRST inserted post in that subcategory, only the posts that are not the FIRST ONE.How can I do this with query_posts..or how? Best Regards //SOLVED I will use a custom field ...

Wordpress post thumbnails

Is there a way to stop wordpress resizing images? I already have in the functions.php add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 235, 419 ); add_image_size( 'single-post-thumbnail', 235, 419 ); Still doesn't work, when I upload a post thumbnail resizes it to some crazy sizes which I don't want..Any way to get th...

Adding DFP Script to Wordpress

Hi, I am playing with Wordpress 3 for the first time and had a quick question. I am placing ads on a site and wondered the best practice to add in the script. The code that Google generates is in 2 parts, one for the of the page and one where the ad should go The head code is in the form <script type='text/javascript' src='http://par...

What is a simple way to add my Twitter Stream onto a website?

Is there an easy way to use the Twitter API to have my twitter feed on a separate blog page? I tried using the basic twitter widget, with different width & height, but the font sizes are frankly quite small and it doesn't let you edit any of it. After a bit more searching, I haven't been any closer to finding a solution. Is there an ea...

Wordpress query_posts() with an array?

I'm trying to query posts based on a number of ID's that are contained in an array. My array (called $my_array) looks like this: Array ( [0] => 108 [1] => 129 [2] => 145 ) And my Query looks like this: <?php query_posts(array('post__in' => $my_array)); ?> However this just returns one post, the post has the ID of the f...

What are some limitations one can do in terms of using Interwoven Teamsite?

Why would I chose something like Interwoven Teamsite as opposed to Joomla, Django, Wordpress etc. I guess the question is how can one justify the cost associated with a teamsite license. Also by going the teamsite route, do I have any limitations on what can or cannot be modified. Thank you ...

mysql error with a large union: Incorrect key file for table '#sql_24b3_61.MYI'; try to repair it

hi.. I am doing a sitewide - query across a large wordpress MU installation. i am getting this error: Incorrect key file for table '#sql_24b3_61.MYI'; try to repair it The table signified, sql_24b3_61 is not part of my db. Also, the query is very large as it queries across many tables. It seems to be some configuration setting? ...

Accessing class from Wordpress filter

I'm probably making a mess of this... I'm trying to add a filter to the_content that will add a method from an external class, but keep going round in circles. Can anyone point me in the right direction?? class MyClass { var foo; var bar; function myMethod($id) { // some code } } I'm stuck on accessing ...

PHP Wordpress loop, how to remove loop and show single iteration instead?

This page shows many recent posts, instead I want it to show only the most recent. How would I remove this loop and replace it with a single iteration of the most recent? <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <span class="postmetadata"><?php the_cate...