Matt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error when I upload mediaYES!… thanks. It always seems to be the easiest problem and you just seem to overlook it.
Forum: Networking WordPress
In reply to: Restoring MultiSite to Single Site – COMPLETELYHello all,
I followed the steps involved in getting my site back to original. One problem that I am having is now when I try to upload new media to my site I am getting an error when using the Flash uploader:
“myFile.mp3” has failed to upload due to an error
The uploaded file could not be moved to /var/www/vhosts/mySite.org/httpdocs/wp-content/uploads.I get this error when I try the browser uploader:
Error saving media attachment.
Is there something else that needs to happen?
Forum: Fixing WordPress
In reply to: Error when I upload mediaI also get this error then I try the browser uploader:
Error saving media attachment.
Forum: Fixing WordPress
In reply to: How to remove trailing slash '/'I’m getting a page not found…
Forum: Networking WordPress
In reply to: Does Multisite Install share users and posts?Yeah… thanks guys. I really appreciate the responses.
Forum: Networking WordPress
In reply to: Does Multisite Install share users and posts?Andrea_r,
I’m not using wordpress.com. I was hoping to have a sub-domain share all posts and users to avoid having to re-style my template for mobile access.
For example a visitor comes to domain.org and they are on a mobile device I would just add:
<link rel="alternate" type="text/html" media="handheld" href="http://m.domain.com" title="Mobile/PDA"/>And integrating jquery mobile the site would pull all posts from parent site as well as users.
Thanks,
Matt
Forum: Networking WordPress
In reply to: Does Multisite Install share users and posts?Ipstenu,
Thanks for clarifying these things for me… I was hoping that this type of setup would have given us the ability to share posts as well as users.
Would there be a way to do this?
Forum: Fixing WordPress
In reply to: How can I pull all comments made on an authors postsGreat thanks!
I didn’t know we would write a query like that?
where: wp_comments.comment_post_ID = wp_posts.ID
Is there any documentation on this?
Forum: Fixing WordPress
In reply to: How can I add a link to an audio file for a post to its excerpt??Okay got it… I wasn’t setting the global var of $post so I needed to make that addition to my functions.php page like such:
function holylandmoments_comment_link() { global $post; return ' <a class="read-more-link" href="'. get_permalink() . '">' . __( 'Comment on this show »', 'holylandmoments-show' ) . '</a> | <a class="read-more-link" href="'. get_post_meta($post->ID, 'Audio File', true) . '">' . __( 'Listen to this show »', 'holylandmoments-show' ) . '</a> '; }Forum: Fixing WordPress
In reply to: How can I add a link to an audio file for a post to its excerpt??Okay I guess no one is having this same issue. I would like to implement this in order for my sites feed to be showcased on iTunes as a podcast.
Forum: Fixing WordPress
In reply to: How can I add a link to an audio file for a post to its excerpt??I’m sorry to bump, but has anyone else had this problem?
Forum: Fixing WordPress
In reply to: How can I add a link to an audio file for a post to its excerpt??I’m trying to get this link to look like this:
Comment on this show >> | Listen to this show >>
Where “Comment on this show >>” gets populated properly with it’s permalink.
“Listen to this show >>” link should be populated with that posts ‘Listen Now’ custom field value.
function holylandmoments_comment_link() { return ' <a class="read-more-link" href="'. get_permalink() . '">' . __( 'Comment on this show »', 'holylandmoments-show' ) . '</a> | <a class="read-more-link" href="'. get_post_meta($post->ID, 'Listen Now',true); . '">' . __( 'Listen to this episode »', 'holylandmoments' ) . '</a>'; }Problem is I don’t get the path to the custom field value of Listen Now to populate the second link… any ideas??
Thanks
This is my error.. any suggestions??
Warning: file_put_contents(/homepages/22/d223624283/htdocs/holylandmoments/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf) [function.file-put-contents]: failed to open stream: No such file or directory in /homepages/22/d223624283/htdocs/holylandmoments/wp-content/plugins/jw-player-plugin-for-wordpress/admin/UpdatePage.php on line 43
I don’t see a player directory.
Forum: Fixing WordPress
In reply to: How can I display total number of posts for the week?Okay found the solution…
$querystr = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post' AND post_date >= DATE_SUB(CURRENT_DATE, INTERVAL 7 DAY) LIMIT 0, 30"); if (0 < $querystr) $querystr = number_format($querystr);Then just echo out the var
Forum: Fixing WordPress
In reply to: How can I display total number of posts for the week?Okay I got this but I was hoping to return just a number… can someone help me out.
$week = date('W'); $year = date('Y'); query_posts('year=' . $year .'&w=' .$week );Thanks,
Matt