wordpress

How to categorize Google Docs published as posts to a blog

I have a blog site running WordPress. I have users who want to use Google Docs to write blog posts and publish them to my site. There is an option in the "Share" menu for doing just this, and it works nicely, except the suggestion is made: To automatically categorize your blog posts, just tag your documents with a category name you ...

rewrite_mod help

Dear all, I need some help about rewrite_mode, this is my wordpress address: http://localhost/my_v2010/restaurants?m=display_Add base_url: http://localhost/my_v2010/ post_name:restaurant query string:?m=display_Add I would like to use rewrite mode, let user just type http://localhost/my_v2010/restaurants/display_Add any clue ho...

Wordpress: if (url is mysite.com/sitemap) do this...

Previously, I've been creating my sitemap page with site.com?action=sitemap That allowed me to easily test on my index page for a sitemap request with... $_REQUEST['action'] However, I'd like to instead create the link to the sitemap with site.com/sitemap And I'd like to know how I can parse the request for the appearance of "/sitem...

Can't echo wp_count_posts('page')???

I'm trying to echo the value of the variable in the code below. I'm getting an error (see below)... Here's the code... $mypagecount = wp_count_posts('page'); echo $mypagecount; Here's the error: Catchable fatal error: Object of class stdClass could not be converted to string ...

How do I set Wordpress Posts to be sub-posts of another Post?

I have X posts about various people. I want to have each person post have a subset of associated posts. Is there any way to do this? I understand people could be categories, but then I run into a problem of not being able to allow for textual data associated with the people (categories don't have a post-page equivalent). Thanks in adva...

Wordpress stripslashes issue

I'm passing the ABSPATH value from a wordpress theme options page to an external page which does not have access to ABSPATH. The problem is that once the value is received in the external file, the slashes are removed. How can I send the value and keep the slashes intact? I'm passing the value for ABSPATH via a javascript window.open UR...

Custom Formatting before Save Wordpress

Hey all, I was wondering if there was a method to do some of my own custom formatting before the post is saved to the database. I know how to customize it when its fetched, but I'd rather keep the reading performance high over the write performance. Thanks, Matt ...

Is it possible to integrate a Wordpress blog with ASP.NET?

Is it possible to integrate a Wordpress blog with ASP.NET If yes, then how? ...

install wordpress on subdomain or subdirectory on another server

Hi, we have a www.domain.com and would like to run Wordpress on another server e.g. on http://blog.domain.com or http://www.domain.com/blog/ What would be the easiest to configure and what should we do to configure our blog this way? Is this a DNS question or can it be done easier? ...

How to setup jQuery cookie plugin in wordpress?

Is the same as installing any other wordpress plugins? ...

Add wordpress widget to dashboard using PHP Class

Hello, I'm just putting together a little 'hello world' type plugin to add a widget to the dashboard. The plugin is initialising and everything is fine with that i'm just having a problem adding content to the widget. Here's the code: /* * Setup the class */ if(!class_exists("SampleClassSeries")){ class SampleClassSeries { ...

wordpress custom page template

I have created a custom page named 'products' <?php /* Template Name: Products */ ?> <?php get_header(); ?> <div id="products_content"> <div id="products_page_header"> <div id="products_page" title="محصولات"> <?php if (have_posts()) : while (have_posts()) : the_post();?> <div class="post"> <h2 id="post-<?php ...

Change permalink build in Wordpress

Is it possible (feasible?) to change the field that is used for the %category% permalink variable? WP uses category slugs to build the permalink, and I'm wondering if I could use (slug-like) category descriptions instead, which wouldn't have to be unique like slugs do. I can hack through PHP, but not to the extent it looks like this t...

How to set a variable in Wordpress's $wp_query

I'm trying to use the set() function, to set $wp_query->query_vars['paged']. What's the proper syntax for this function? Thanks. ...

Wordpress Help on post

I'm having a bit of a problem I have created a post and it shows on my blog but as soon as you click on the title link it says "Sorry, no posts were found." and even in the homepage where the recent post doesn't work. ...

Hiding a DIV in sidebar in Wordpress

I want to hide this specific in the blog and other page I have this code : <?php if (is_page(array ('2','4','6','8','10','12'))) : ?> <?php else : ?> <?php include('stats.php');?> <?php endif; ?> it won't show on 2,6,8,10,12 which are the pagesbut it shoes in 4 which is the blog please help. ...

Targeting the parent div with jQuery

So, here's my situation. I have a wordpress site, and each entry has a link within the post div. <div class="post" id="post-133"> <h2><a href="post-link" rel="bookmark" title="Link to Post">Post</a></h2> <div class="post-date"> <span class="date">Tuesday, Jan. 26, 2010</span><span class="right read"><a href="#" class="noprint show_s...

Is PHP the only choice re: massive and rapid uptake of a re-deployable, extensible web application?

My own answer to this question is YES, but I'd like to hear from others. Put another way the question could be: Would the success of 1-click-install WordPress (not WordPress.com, which is SaaS) be possible if it weren't written in PHP, all other things being equal? The critical associated requirements I believe support PHP are: hosti...

Wordpress fantastico problem

I had installed wordpress using fantastico. Now I no more have fantastico on server. but since it's been removed, my wordpress blog is not working. any suggestions? ...

Wordpress images as subposts

Is it possible to have images in a certain post to be showed as subposts? What I mean is a structure like this: post - http://www.blog.com/some-post I want all images in that post(10) to be shown like this when clicked www.blog.com/some-post/image-1 www.blog.com/some-post/image-2 ... www.blog.com/some-post/image-10 is this possible? ...