wordpress

Wordpress pagination

I have a wordpress page that shows the latest news. I want to paginate these news, and this is my code: <?php query_posts('posts_per_page=5'); ?> <?php while (have_posts()) : the_post(); ?> <div class="news"> <h1><a hr...

php echoing <div> in wrong place

i am working on an an options panel for a wordpress theme. this problem has started since i tried trying to add jquery, but it doesn't seem like it should be a jquery problem.. and doesn't go away when i delete all my jquery scripts. anyway PHP determines whether the page was saved, reset, etc and displays an appropriate message at t...

Making pretty permalinks work in WAMP

I am not able to switch to pretty permalinks in WAMP. Changing to any form other than default gives 404 error. I have switched on the rewrite_module in Apache. I googled the problem and found that following changes should be made to httpd.conf file. My httpd.conf file stands as <Directory /> Options Indexes FollowSymLinks AllowO...

Wordpress, why doesn't my blog load the posts if U use the /subfolder domain method?

I have a blog at http://hamids-it.elaosta.com amongst others. If I try to access it from http://elaosta.com/hamids-it it loads the blog but says it couldn't find the page I wanted. How do I fix this so I can use either? ...

PHP + Wordpress - get a list of files from a directory

Hi Are there any native WP functions that are able to list files based by extension from a directory? if not, how do I do this with php? I want to get the file names of all .css files from a certain folder ...

wordpress store front theme

Hi, I am working for a client so I am not able to provide the most of the details here. so if someone already used this theme http://themeforest.net/item/wpa-storefront-the-ultimate-wpecommerce-theme/full_screen_preview/61891 please let me know how to get the last grid view option to show up via the admin. This is another example that I...

Migrating from wordpress.com to wordpress -> [googlemaps] and [youtube] shortcode?

Hi, I migrated my blog from wordpress.com to the actual wordpress software. I have [googlemaps] and [youtube] shortcode (think that's the right term) inserted in the pages, yet I can't find the same shortcode plugin that will let me do this. Anyone know where to get it? ...

[Wordpress] - nonce troubles

I have developed a script that will generate an hatml page with a list of duplicated posts in my Wordpress install. I have coded the page in a way there's a link to delete duplicates, straight away, however due to security reasons this is not allowed by design. You need to use nonces. So I have started using wp_nonce_url function to ad...

How can I have a form where the text in the input disappears when clicked? (for feedburner form)

Hi all, I've got the following "subscribe by e-mail" form: <form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=food101coil', 'popupwindow', 'scrollbars=yes,width...

I can Order My posts

Hi to All ! I am new in Wordpress and i have a little problem with my posts, My menu is drop down because have a lot of posts and submenus, He give to me the text from the Last post (see pic) This picture it's explain everything http://pic.mk/images/pic41278336397.jpg ...

Which API is being used in this website to sign in, and display a profile image?

I'm a bit puzzled. CSS tricks has an area for comments, but I noticed that the people who comment, have their own link and profile image. I understand that the author of that site is using Wordpress. Is this being accomplished with Wordpress or another API? ...

Is it possible to integrate Wordpress content outside of Wordpress install?

I have client that built a website that is part static html and part Wordpress. The Wordpress is only for the blog while the static pages are for the rest of the site content, including the home page. This same client would like to be able to "pull" recent blog posts and comment counts from the blog and post them on the home page. I am...

limit characters from <?php the_tags ?>

I have a layout that have to show the tags horizontally. I want to be able to limit the amount of characters outputted. Example - if I set the limit to 14 the following should happen. Original: Cats, Dogs, Rain New output: Cats, Dogs, Ra.. Please note that <?php the_tags ?> returns an array. It is everything returned I want limited to...

wordpress posts/content in 2 languages

I'm setting up a wordpress 3 blog and we need to be able to write and manage content/blog posts in two languages. What's the easiest way to accomplish this? Are there any WP3 plugins that make this process possible? The solutions should work on the latest version of wordpress (3.0 right now) and we would like to keep titles/keywords/de...

Wordpress: get author info from post id

Or even the author id from the post id. I am trying to return the author meta (author page link and avatar) in the sidebar of a single post page (outside of the post loop). What is the best way to do this? I am using a custom function (see below) to return the post id, but am not sure what function to call next. function this_post_id() ...

PODSCMS + Radio Button Input Helper

Hi, I am trying to implement a radio button input helper for my PODSCMS for a boolean field. The requirement is straight forward. Instead of displaying a checkbox, I want to display two radio buttons with 'Yes' and 'No' option and based on what is selected I want to either insert 1 or 0 in the db column. Here is the code I have so far ...

categories and items 1 big array

I've made some search on the forum without any good answers for my problem. If I missed something, feel free to link me to the question! What I need to do is simple: a function that returns an array of the full tree of my categories and items. I only have 1 depth (item and a cat_id), so no recursion involved (though if you have a recurs...

Wordpress latest Posts AND comments feed?

I'm trying to write a custom SQL query that will create a list of the most recent Posts AND comments and I'm having trouble visualizing how i can do this. I can pull the latest comments by date DESC and i can pull the latest posts by date DESC but how do I make a feed / query to show them both? Here is my comment SQL SELECT comment_i...

Query multiple taxonomies

Hi, I'm modifying a wordpress plugin (Related Posts by Category) to make it instead "Related Posts by Taxonomy". I've created multiple taxonomies (elements, colors, and mood) that I'd like to include in this query, but can only seem to make it work with one taxonomy (elements). The code below only returns related posts that have the same...

How to make Wordpress category IDs sequential?

I've noticed when I create a new category in one of my Wordpress 2.9.2 installations that the new category ID isn't sequential. I have created five categories and the id's so far are: 15, 23, 34, 36, and now the newest one, 54. This isn't really a problem, but is kind of annoying! And I haven't seen it before on other installations. ...