markey101101
Forum Replies Created
-
Forum: Plugins
In reply to: Automatic daily newsletter made from posts?thanking you, that’s exactly what I wanted!
Did anyone ever find the fix for this?
I have tried uncheckin the CDN checkbox and saving then trying to reactivate the caching though every time I do this it still keeps the CDN box checked and fires out the error telling me I need a hostname for the CDN.
It just seems to be ignoring the fact that I have unchecked the CDN box.
Forum: Plugins
In reply to: Some excerpts are way too long even though I limited them?I opted for removing the excerpt. Seems to be an issue with how some articles are formatted, however I could be wrong. Looks better now without them anyway. Thanks for your advice and attention.
Forum: Plugins
In reply to: Some excerpts are way too long even though I limited them?Yes I have the_excerpt but some are still displaying the_content but as seen not all are?
Forum: Fixing WordPress
In reply to: Extra non alphanumeric characters in permalinks?Anyone please?
I’m looking to do that too.
To be able to add extra fields for saving.
One for uploading attachments, and one for adding other info from text fields.
Did anyone work this stuff out?
Forum: Fixing WordPress
In reply to: I can do this with 3.0 as multi user site?thanks i’ll look around for a free guide. ??
Forum: Hacks
In reply to: How to remove base URL from this statement?Please anyone?
I just want to get the image location without the base url so I get
/wp-content/uploads/date/image.jpg
rather than mydomain.com/wp-content/uploads/date/image.jpg
Forum: Alpha/Beta/RC
In reply to: WP 2.9 Thumbnail Sharing on FacebookIf you’re using a CDN or hotlinking is disabled it won’t work.
I’m now trying to figure out how to remove the url base https://www.mydomain.com from this function so then I can add my standard base url rather than cdn.mydomain.com/image.jpg
If anyone can fix this code to remove the base URL everyone’s problem is solved right away..
# Displays post image attachment for FB (sizes: thumbnail, medium, full) function fb_attachment_image($postid=0, $size='thumbnail', $attributes='') { if ($postid<1) $postid = get_the_ID(); if ($images = get_children(array( 'post_parent' => $postid, 'post_type' => 'attachment', 'numberposts' => 1, 'post_mime_type' => 'image',))) foreach($images as $image) { $attachment=wp_get_attachment_image_src($image->ID, $size); ?><?php echo $attachment[0]; ?><?php } }
This code is then used like this inside <head>
<meta property="og:image" content="<?php fb_attachment_image($post->ID, 'thumbnail'); ?>"><link rel="image_src" href="<?php fb_attachment_image($post->ID, 'thumbnail'); ?>" />
Once we solve removing the base URL everyone with a CDN can still have their thumbnails working on FB as long as hotlinking images is not turned off ??
Forum: Plugins
In reply to: Why doesn't this if statment work properly?I got it working Yipee!
elseif ( is_single() && !is_attachment() && get_post_meta($post->ID, 'cust_cat', true) ) { $cat = get_post_meta($post->ID, 'cust_cat', true); echo $cat; echo $currentBefore; the_title(); echo $currentAfter; } elseif ( is_single() && !is_attachment() && !get_post_meta($post->ID, 'cust_cat', true) ) { $cat = get_the_category(); $cat = $cat[0]; echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); echo $currentBefore; the_title(); echo $currentAfter; }
Forum: Plugins
In reply to: Why doesn't this if statment work properly?This doesn’t work either. What it is saying is that if the custom field exists use the following and the other statment says if the custom field doesn’t exist.
For some strange reason it just doesn’t work.
Maybe the && get_post_meta is the wrong code to use?
Thanks
Forum: Hacks
In reply to: Custom Select Query for Displaying Posts Not WorkingRemove the constraints?
Forum: Plugins
In reply to: Display Total Number of Posts For Current Month, Week and Day?I figured out how to do it for the year
<?php echo $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND
post_date` > ‘” . date(“Y”) . “-01-01 00:00:00′”);
if (0 < $numposts) $numposts = number_format($numposts); ?>`Can anyone help me make it into day, week and month please?
Thanks.
Forum: Fixing WordPress
In reply to: Author Permalink is Affected by Permalink Structure.. Help.Nope that won’t do it.
Any other ideas?
Maybe just remove the story/999/ is the only solution?