Hi,
I'm currently developing a custom theme for a client of mine. What I want to do is retrieve all the attachments (= images) in the installation via wp_getposts (http://codex.wordpress.org/Function_Reference/get_posts).
That code would be:
$attachments = get_posts('post_type=attachment&numberposts=-1');
foreach ($attachments as $a...
Hey All,
I made the mistake of creating a site in a folder on a test domain and now I want to redirect any traffic to that URL to the new one.
For instance I have: http://subdomain.example.com/blog and I want it to go to a complete new domain.
Any help is appreciated.
Thanks,
Matt
...
Ok so I think I'm going nuts. I've got 2 blogs running Wordpress 3. Both use the same theme. Nothing has been drastically modified in either one, but the one is displaying as it should and the other is missing various styles and functionality.
I know the cause of the problem - a 404 error on the one site for two resources. These resourc...
Hi,
Hoping someone can assist - I'm currently developing a website in HTML/CSS that will eventually be converted into a WordPress CMS - this is the first time I am attempting this and have a few queries regarding this:
1) Within the current site I am developing, I want to have a "Search" box feature by where the user can search on any ...
I am trying to learn some new database techniques and at the moment, I have a opportunity to apply and try something new.
Wordpress coined some of it's values: "transient" and lock it on to a key value.
Example Value:
a:20:{i:-1273996637;i:1284;i:-1273997086;}
What I like to know is the concept on how these values are created.
...
Hi, The wordpress is such a great tool. I'm wondering if it will be a problem to start adding sections at some point, nothing to do with the blog, just sections for the site with different functionality ( say a database of searching stuff ) perhaps also incorporate and let user reistered through the word press database with the other fea...
Please note, this is not a theme or so issue.
The categories are not showing in the admin panel, however it denotes that there is 6 categories. They are also visible in the databse.
Recently something happened with the hosting and any php move_upload functions started giving error about missing tmp path, so i created a local php.ini fil...
Im looking for a Wordpress plugin that will allow editors to pick posts to add to a newsletter that can be output as plain text and email friendly HTML. I'm not bothered about mailing lists and subscribers ect as we already have an email system for handling this. Any plugins that can do this? Many thanks in advance.
...
I'm trying to create a hook in one Wordpress plugin that could be used by other plugins. First off, is this even possible? I'm also sending some additional args so this may be 2 questions in one since I've been having trouble finding definitive information on how to do this.
Here is what I've tried so far:
In the plugin that is creatin...
I'm looking for a way to fetch posts in wordpress that are slated for future publication based on a custom taxonomy query. Finding future posts is
otherwise, simple
query_posts('post_status=future');
But adding a custom taxonomy doesn't work as expected
query_posts('musicians=paul-mccartney&post_status=future');
I ended up using ...
I'm writing a wordpress plugin, and using this script to resize images: Timthumb
This script uses absolute paths, but I can't get it to work for me; I've triple-checked all my paths but still nothing.
Here is my code:
$plugin_dir_name = "my-plugin";
$pathTimThumb = WP_PLUGIN_URL . '/' . $plugin_dir_name . '/timthumb.php';
$pathToUplo...
How can I add a radio button in my wordpress widget form? I have been able to add input fields that gets saved and works fine. But I am having trouble with radiobuttons. Anyone?
This is my code for input field:
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php _e('Video ID:'); ?>
<input class="widefat" id="<?php echo...
All I am trying to do is to add two Posts in a wordpress Static home page.
Such as the one in the following picture.
I can't seem to find any option in the admin part of wordpress, and there is only one content box to post things. How do I get two or more? Thank You.
...
Hi.
For some reason it seems that WP3.0 is bugged with everything relate to maintenance-mode.
The 2 maintenance-mode plugins (maintenance-mode & wp-maintenance-mode) cause the following problems:
wp-maintenance-mode doesn't allow u login as an admin. He just blocks you at the wp-login page.
wp-maintenance-mode even doesnt influence ...
I've got a plugin that is declared and hooked following best practices described in this related question:
http://stackoverflow.com/questions/1615118/wordpress-accessing-a-plugins-function-from-a-theme
So it looks (platonically) like this:
if ( !class_exists( 'Foo' ) ) {
class Foo {
...
public function do_stuff() {
//...
While editing a post that contains an image, WP attaches a properties inspector icon over the image to allow editing basic properties such as size, alignment, link etc.
I'd like to know how difficult it would be to hack into this dialog screen and add some custom programming to the link area.
I'd like to add a popup menu there that I c...
Hi,
I've created a custom type in Wordpress called classifieds and added a few posts.
I can see the posts under /classifieds/post-title
However, I am trying to retrieve all posts from /classifieds but I am getting a 404 error.
I've followed instructions here:
http://codex.wordpress.org/Custom_Post_Types
and I created a classifieds...
Hi,
I am trying to make an index page but just showing the posts of a specific custom type.
Loop starts like this:
<?php while ( have_posts() ) : the_post() ?>
How can I modify the code just to show posts from a custom type called "classifieds"?
Thanks!
...
Is there a way to query multiple specific posts? For example, the following gets one:
// retrieve one post with an ID of 670
query_posts('p=670');
But as far as I can tell, I can't extend this to do two posts, separated by commas. Does anyone know a better way?
...
I've got a category template: category-projects.php
This category has subcategories, but they're refering to the template category.php for instructions instead of the parent category. How do I make subcategories refer to parent category templates in the cascading order of template references?
*Note, I'm talking about category level url...