wordpress

Can you display data from a database in a WordPress blog post?

I'm a complete WordPress noob, so forgive any ignorance in the following question. I have a database with NFL players' statistics and I'm interested in displaying that information in a blog post. Is it possible to have a SQL call to render that data be made when the user views the post? In other words, I'm trying to avoid cutting-and-...

Wordpress: install multiple plugins from one zip

I've noticed that if I take a plugin, let's call it "wordpress on steroids", and I place other plugins (the raw files) into the "wordpress on steroids" folder, providing that there are no files with the same name, I can effectively upload multiple plugins with one single install. However, there are problems with this approach... 1) Alr...

PHP: determine a period or question mark at the end of a sentence

Problem: some of the post titles on my WordPress site are questions, i.e. the post title ends with a question mark. And I have post queries that generate lists of the most recent posts. So I'm trying to figure out a bit of php that will keep my punctuation correct. What's a good way to determine if the last character of a title is a que...

sIFR links deactivate

Hi, I am developing a Wordpress site using the WP sIFR plugin. Yesterday my hyperlinks suddenly stopped working after 15 minutes or so. When I open the page in a new window, they are reactivated, even in the original page. I am using Firefox 3 on a Mac. http://stellaandmoon.com.au/art/ Can anyone help me? I would really appreciate any...

Wordpress custom theme's 404.php > Does Google see it as a true 404 redirect?

WordPress allows theme designers to place a 404.php file in their theme's directory. This enables you to provide a custom page content when the WordPress application forwards the 404 over to your 404.php page. My question is this: Does this constitute a true 404 error that would be registered as such by Google and other crawlers, or doe...

How do I get wordpress to output Hebrew (works when in plain HTML pages)?

I have a template I've created, and it displays Hebrew. However, when I then take the HTML code and paste it into a Wordpress template, the Hebrew letters display as Question Marks (????). I'm guessing this has something to do with the format the files are saved / outputted in? What do I need to do to have the Hebrew outputted in Hebrew?...

Latest version of Wordpress 2.9.2 issues 404 host headers by default. How to prevent this?

Apparently one of the latest version updates of Wordpress is now issuing a true 404 header in response to a 404 condition. Previously, WordPress would simply forward the 404 to the custom 404.php and you could handle it without triggering a 404 on the search engine crawler. For example, you could load your Sitemap with a custom message f...

How do I make a new top level menu in Wordpress?

I want to create a new Menu in the admin panel of Wordpress for my new plugin. Just like 'Tools', 'Users', 'Settings', I want a new item, 'My Plugin'. I'm aware of the function add_menu_page(), but how do I use it? What is the code for doing this? thnx! ...

Wordpress : display all articles of a month on one page

I would like to change the default behavior of Wordpress regarding the number of articles displayed on a same page to be the following : when displaying the home page, the 10 most recent articles should be displayed, 10 being the setting which can be changed through the admin panel (posts_per_page) when displaying the articles of a spe...

Wordpress Seo features

I am working with wordpress in apache.Now am in very big trouble.I need to rewrite my url. I am trying by this code for .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /shopboxcms/ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php ...

Only allow outgoing email

Excuse the complete noob question, but here goes: I've got a VPS running Ubuntu which is hosting a bunch of WordPress sites. I'd like to be able to set up contact forms, so website visitors can contact me. It looks like I need some kind of mail stack installed, so WordPress plugins can email me the information visitors fill out on the s...

I want to implement TinyMCE in my Wordpress plugin. HOW??

Basically need the default Wordpress TinyMCE WYSIWYG editor where the user will enter some formatted text in my plugin. How do I integrate/implement TinyMCE in a simple HTML Wordpress form?? I'm using Wordpress v2.9! ...

Wordpress > How to remove the default pages (about, hello world) via script

[Update: I've found the API reference. The method used is below] <?php wp_delete_post( $postid, $force_delete = false ) ?> I've got a wordpress plugin that creates my default pages for me (about us, contact us, privacy policy, etc) when I first install a new wordpress site. It works really well and gives me a quick boost to rapidly bu...

Assume that WordPress is an almost-there CMS. What Plugins would you add to the 'core' to make it equal to "Real" CMSes?

It's obviously a matter of some controversy as to whether WordPress is a CMS, but like it or not, it's an extremely popular platform. Assume for a moment that it's an almost-there CMS. What plugins would you add to the package to bring it over the threshold? ie, if you were designing a "WordPress CMS core", what plugins would you add...

Intercept WordPress Admin Dashboard for Alerts

How can I make a plugin send an alert to one's dashboard at the top right below where the WordPress upgrade notice might normally appear? I imagine I need some kind of add_filter() or add_action() call in the plugins' code. ...

Post pages in Wordpress 2.9

I'm trying to use a posts page in Wordpress. For the uninitiated, this is a page (other than the home page) which features all your blog posts. You essentially turn on the static home page and point Wordpress at a custom index. Then you tell Wordpress to use another custom template as your "posts page"; thereafter, any post you make will...

Wordpress Add Links

I my wordpress blog in home page which shows some details of products.I want to display blog information also in my wordpress...thats why i need to add another link to my home page excepti about and home link.how it possible to add..if anybody knows please spend some time for me please ...

Wordpress - Harvard Gazette - How did they do X ?

Hi all, I just came a cross matt's post on the new Harvard Gazette wordpress based magazine. This theme is doing some very cool things I would like to know how to do too. So if any one knows of tutorials/plugins on how to do them, please share. Here are some of the things: 1) Amazing calendar. 2) A very strong multimedia section. ...

How to set Wordpress and index.php to WP site

Hi, I have a running website and now i like to use WP for a couple of sub website/pages. So i am installing WP in subfolder, but now i am a bit clueless how to set up my index.html and .htaccess I guess i need to make index.html to index.php so i can add require('./wordpress/wp-blog-header.php'); but that would load WP and not my ru...

how to create new plugin in wordpress ?

Please Provide me sample code to carete wordprss plugin ...