wordpress

Paginating get_posts() in Wordpress

This a template page in my wordpress (have removed html), it pulls out the posts from my wordpress database. I want to paginate it but have no idea! :( I wan't to get something like this << First Prev 1 2 3 4 Next Last >> <?php $postslist = get_posts('numberposts=10&order=ASC'); foreach ($postslist as $p...

Wordpress, external query inside the loop

$qry = mysql_query("SELECT test1,test2 FROM ".$table." ORDER BY RAND() LIMIT 6"); $start = new WP_Query('showposts=6&orderby=rand'); if ($start->have_posts()) : while( $start->have_posts() && $rows = mysql_fetch_assoc($qry) ) : $start->the_post(); $test1 = $rows['test1']; $test2 = $rows['test2']; ...

How to fix Wordpress MU/Network image linking giving {#advlink_dlg.general_props}

When you ad a link to an image on my Wordpress 3.0.1 Network the labels appear with code as so; {#advlink_dlg.general_props} Take a look; Does anyone else have this issue/know a fix. Luckily function is not effected. Ben ...

How can I set WordPress roles such that once a Contributor's post is scheduled to be published, they can no longer edit it?

At least for my purposes, it is absolutely essential that a Contributor be unable to edit his posts once they've been scheduled to be published, as well as actually published. This seems like it should be simple because otherwise in a system with a lot of users a malicious user could slip under the radar with a sketchy post by first sub...

problem with hebrew in wordpress

Hi guys, i want to change the SearchForm.php file in my wordpress themes to hebrew. i mean i want to see 'חפש' (hebrew text) instead of 'search for '. when i change it i see gebrish. why ?? thanks. ...

How to hook this WordPress funcion: install_blog_defaults?

Hi Guys, I'd like to find some way to disable the first "welcome post" and "welcome comment" that are automatically created when a new blog is created. I'm running WordPress MU 2.9.2 and I found the function that does these things automatically: File: wpmu-functions.php Function: function install_blog_defaults($blog_id, $user_id) { .....

Add Meta Post function not working

I am using add post meta function to save some data and its not working <?php //include '../../../wp-blog-header.php'; $unique = "true"; $pageID = $_GET['postID']; echo "pageID:"; echo $pageID; echo "</br>"; $num_posts = $_GET['num_posts']; echo "num_posts: "; echo $num_posts; echo "</br>"; $num_posts_meta_key = "num_posts"; add_post_m...

Wordpress, mysql_data_seek, external query inside loop

Hey there, why does this code not work? $qry = mysql_query("SELECT performerid,pic0 FROM ".$table." ORDER BY RAND() LIMIT 6"); $start = new WP_Query('showposts=6&orderby=rand'); if ($start->have_posts()) : while( $start->have_posts() ) : $start->the_post(); $rows = mysql_fetch_assoc($qry); if (!$row...

(Wordpress) Only show future posts in archive & search results

Hi there, I have an events category which is searchable by a sub-category (by city where the event is being held). I have the 'The Future is Now!' plugin to allow me to publish future dated posts but hoping that I can set up a paginated template that, when a post 'expires' it will no longer show up in the loop/archive. I'm also wonderi...

How to get the number of sub-page/child pages that exist in Wordpress?

Basically I am trying to show something like "Viewing PageNumber of TotalNumberOfPages" in each subpage for a specific parent page. So i am trying to figure out how to count the number of sub-pages/child pages that exist and display them on a subpage? ...

What is the use of Wordpress/Joomla?

Hello all I am developing a travels related website using cakephp. I have to put some tour itinerary/special vacation campaign etc. on it almost everyday. The template/format remain the same, just the content changes. So, I am guessing that I can use some content management system like Wordpress/Joomla here. Till now I had been working...

Concatenate comments from same author : Wordpress

Hi...I want to achieve the following task "Comments from the same user on the same property will be concatenated to form one large comment for a user on a particular property" Any ideas please... Thanks and Regards ...

WordPress weigt's Problem

When I removed available weights from a the available list for the inactivated list using drag and drop it never removes. I want to know is it the right way to do it ? ...

How to display list of WordPress custom post types?

I created a custom post type called article in WordPress 3. My custom posts are working and I can view them at mywebsite/articles/my-sample-article-title. I would like to achieve the following: 1) When I go to mywebsite/articles, I would like to see a list of articles. 2) I would like to do some custom loops within this url (mywebsite...

SQL and PHP - Submit form with an ID in URL (in wordpress)

I've been trying to find the best way to do this for a while now but cannot figure it out. I have a simple dropdown which auto populates based on an SQL query. When you press "search" I need it to go to a page with the url extension ?id=x where x is the id of the option they selected. $locations = $wpdb->get_results( $wpdb->prepare( ...

Deregistering Jscripts / CSS From Wordpress Plugins

Im not sure if this is an issue with Wordpress 3.0 and changes to function names but as far as I can tell this should remove the jscripts and css from the headers sitewide add_action('wp_print_scripts','my_deregister_javascript', 100); function my_deregister_javascript(){ wp_deregister_script('ngg_script'); wp_deregister_script...

Where can i set the location of the css file in wordPress using php?

I am using wordpress and am trying to link to the stylesheet: <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> It is not recognizing that link tag, because I think the bloginfo('stylesheet_url') part is not working correctly. Where can I set the location of the stylesheet url in wor...

Sharing symfony and wordpress session

I'm working on a solution that has two applications 1) Wordpress based CRM (frontend) 2) Symfony based b2c application Symfony application is created and working fine. When we login to symfony based application, the top menu changes with respect to person logs in. e.g. sign-in changes sign-out etc. The thing is we need to have this s...

wordpress - How can I display post link group by year?

I want to display a list of post link group by year. Archive function don't do it Eg: 2010 Blender 2.53 released Gamequery 0.5 released synfig 0.62.02 released ... 2009 Gimp 2.67 released Blender 2.52 released How can I do it? ...

subversion and symlinks on windows for wordpress development

Hi, I'd like to use the method described here to use subversion for Wordpress development: http://www.aaronwhitman.com/2010/01/subversion-repository-with-wordpress-external/ Does anyone know of linkd.exe will do the job for the symlinking part? thanks! ...