1
голосов
2ответов
11787 просмотров

Create custom rewrite rule for my WordPress plugin

I'm writing a plug-in for WordPress which in fact will be a separate ordering module (it will be placed in an IFRAME on the site I'm developing as well as others) but with its admin tied into WordPress. I wrote the administration part without too much hassle, however I'm having trouble with the f...

1
голосов
1ответов
3176 просмотров

Upload an image from Wordpress to Flickr

Does anyone know a Wordpress plugin which uploads automatically a picture from Wordpress to Flickr? The are tons of plugins to pull pictures from Flickr to Wordpress but what I would like to do is add an image trough the Wordpress back end and automatically add ti to a specific Flickr account. T...

-1
голосов
1ответов
166 просмотров

For Wordpress, Is there a Twitter plugin shows twitter updates from people I follow?

does anybody know if there is a Wordpress plugin that allows me to show Twitter updates from people I follow? If someone knows about it, please share with me. Thanks in advance.

1
голосов
1ответов
5953 просмотров

Wordpress: get last post belonging to a category, when listing categories

I've tried looking at the database but I can't seem to be able to make a query to do this. How can I look up posts from only one category, or more specifically, I just need the ID of the last post from the category. I'm trying to do this in index.php

0
голосов
3ответов
4597 просмотров

How to show Wordpress page number and total number of pages (i.e., page 1 of 3)

I would like to display the page numbers in index.php, search.php and archive.php As far as I'm aware, the variable $page contains the current page number, this works, but I just need the number of pages. Also is there an easy way to get the URL for the next page and previous page for use any w...

0
голосов
4ответов
283 просмотров

domains redirecting to specific pages

I have a main domain name associated with a WordPress site, and then I have a couple other domain names connected to that site as well. I want the other two domains names to point/redirect to specific pages on the site rather than the index page, which is the default. So when domain1.com is ...

0
голосов
3ответов
285 просмотров

wordpress (301 redirect plugin)/ php question

I am setting up a website in wordpress. the site was done by someone else. After setting up the site / database I get the following error: Parse error: syntax error, unexpected $end in C:\Documents and Settings\user101\ Desktop\wordpress\wp-content\plugins\wp-301redirect\wp-301redirect.php on l...

2
голосов
2ответов
4150 просмотров

How to make __() and _e() work in any PHP file of wordpress?

I'd like to have wordpress to do I18N for my javascript. My plan is to have javascript code in php file. For example, one sample.js.php file as below: function foo() { alert(<?php _e('do something'); ?>); } The sample.js.php file is referred as javascript. <script type='text/javas...

0
голосов
2ответов
844 просмотров

Link to #comments on WordPress blog post do not go to the page, just sit there

When I click on the comments link on my blog the page is not redirecting to the link and rather stays in the same page. When I start I'm at this URL: http://localhost/wordpress And the link I'm clicking on is addressed to here: http://localhost/wordpress/?p=3#comments Why would the link not wo...

0
голосов
1ответов
437 просмотров

Need help with .htaccess ReWrite rules

I'm using Wordpress and have the following pemalink /%category%/%postname%. This gives me user friendly URLs like http://www.example.com/something/. With this permalink, I will not be able to access php files directly, e.g. http://www.example.com/something/myfile.php. I need to write a ReWrite ...

0
голосов
1ответов
286 просмотров

Disable wordpress auto search for related posts

I am working on making urls like example.com/profile/username to work where example.com runs Wordpress(latest release). The install is on root. I wrote a plugin hook to catch template_redirect and I examine the URL to see if it is a profile request and then I show the profile. But, when a URL th...

1
голосов
1ответов
829 просмотров

Add HTML to wordpress database

Hey, how do I insert raw HTML in Wordpress's database? I'm using add_option to add values to wp_options table of Wordpress. But Wordpress escapes everything before inserting to the database, so will it pose a problem? If so, what is the correct way

1
голосов
2ответов
979 просмотров

Modifying CakePHP-resident Wordpress Redirects using mod_rewrite

I have a CakePHP site that contains a vanilla Wordpress installation. It lives in /app/webroot/blog/. The problem I'm having is a strange one. I have the site configured, through mod rewrite, to redirect all requests to /app/webroot/blog to /blog/. The reason for this is that Wordpress was ei...

0
голосов
1ответов
156 просмотров

Add content between Wordpress queried posts

I am wondering how I can add something between posts being queried in Wordpress through this method: <?php $the_query = new WP_Query('category_name=name&showposts=2'); while ($the_query->have_posts()) : $the_query->the_post();?> Is there a way I could add something simple, ...

1
голосов
2ответов
1336 просмотров

Hide link text from statusbar in wordpress

I have a text widget in my wordpress blog. Inside the text widget, i have a link. When mouse is hovered over the link, the link text shows up in the status bar. To prevent the link text from showing in the status bar i tried using: <a href="#" onmouseover="window.status=''" onclick="fun();ret...

0
голосов
1ответов
99 просмотров

Wordpress permalinks set

How can I pass category ID using permalinks? my post page id is 205 and for that I used function <?php echo get_page_link('205');?> and I also want to pass category id along with this link, how can I pass category Id with this page link?

0
голосов
2ответов
70 просмотров

Blog wordpress-moveble type

I am about to launch a recipe blog. I like to be able to interact with comment, have a star rating system, sell ad and have a custom section for client (mini site) have you any experience on movable type over wordpress ?, which is the best "out of the box" solution ... maybe enhanced with some p...

49
голосов
9ответов
91570 просмотров

Get WordPress Post ID from Post title

I have an issue with a custom WordPress theme I'm developing. It's a bit convoluted, but essentially, what I need to do is get a Post Id by it's Post Title. In pseudo-code it would ideally be something like: title = "foo"; post_id = get_post_id_where_title_is(title); The title mentioned is a s...

0
голосов
2ответов
2319 просмотров

Redirect GET data from a page using POST to another page

Hi I have a php srcript that receives GET data and I want to redirect the data from GET to another page in wordpress using POST. It's that possible, and how? Thank's for the help.

-1
голосов
2ответов
544 просмотров

Integrate wordpress blog with joomla website

I have a website which I developed in joomla and a blog in wordpress. I would like to integrate that blog with my Joomla website without using wrappers or CorePHP component. Is there any way to do this?

2
голосов
4ответов
2735 просмотров

Wordpress And Zend

I am wanting to do stuff with the Google Data API, the contacts specifically. The easist method i have found so far is using Zend. The problem I am having is adding the Zend framework. Does anyone know how to do this with WordPress? Thanks

1
голосов
1ответов
1442 просмотров

How to Sort Wordpress Posts Horizontally, Calling by Category

I am using the following code to try and display posts from only a certain category horizontally in three rows. I have the horizontal display issue figured out (using css) but with the following code it displays all posts and not posts from specific category. <?php query_posts('showposts=5');...

0
голосов
1ответов
53 просмотров

No feed output when working with Friendfeed and Wordpress API?

This is probably a Wordpress issue more than a Friendfeed issue but could be either. I have tried to debug with Firebug, wP_DEBUG, and error_log() but no issues have appeared. I'm trying to initalize a set of ajax-powered feeds (using Friendfeed API) in the middle sidebar on various Wordpress ca...

0
голосов
1ответов
1006 просмотров

Howto use the has_filter wordpress function with an object based callback

I have several plugins, all of which are based on using objects to hold the plugin. In one plugin class named "test_plugin" I have: apply_filter('wp_list_pages', array(&$this, 'wp_list_pages')); I would like to use the has_filter function in one plugin to try to detect the presence of the...

0
голосов
2ответов
1591 просмотров

How can I update my permalink structure in wordpress?

This is the old url of my blog (wp 2.2) http://myblog.com/category-name/post-name ex. http://myblog.com/shoes/i-like-shoes and Im trying to change it to http://myblog.com/post-id/post-name.html ex. http://myblog.com/717/this-is-my-first-post.html Im moving my content from wp2.2 to wp2.8 and i...

0
голосов
1ответов
89 просмотров

Filtering and routing twitter messages

I normally use twitter both as a communication chat and as a short blog service. On my wordpress blog, I import the twitter messages timeline from one twitter account (specific for the blog-visible messages). For communication and chatting, I use another twitter account. Having two account is a ...

0
голосов
2ответов
448 просмотров

WordPress Plugin Issues

I learned how to create a plugin on WordPress a while ago. However, WordPress changed everything around and I'm trying to create the same plugin using the new WordPress format. I've read several things, but tried to jump right in by modifying the WordPress Text Field plugin (one of my goals with ...

0
голосов
2ответов
343 просмотров

Display code in WordPress

I found some threads regarding this issue on SO, but so far nothing mentioned there helped me. I want to display C# and XAML Code in Wordpress. I, unsuccessfully, tried using the following plugins: Google Syntax Highlighter for WordPress WP-Syntax Code Auto Escape When writing a new article,...

5
голосов
2ответов
8152 просмотров

Wordpress: Removing posts in "The Loop" using filters

After reading the Wordpress documentation, I realized you can remove posts from the index using filters inside "The Loop", e.g.: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- The following tests if the current post is in category 3. --> <?php if (in_cat...

3
голосов
2ответов
435 просмотров

Wordpress Hooks

How does wordpress implement hooks internally?