catnip216
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How check if a post belong to a given taxonomyThat’s not quite it (at least not in the way I understand the question, which is similar to mine).
How would you determine if a specific post belongs to a particular taxonomy? This would be in the single-post template, not in an archive, so is_tax wouldn’t work here. It would be more along the lines of in_tax (like in_category), but there’s no such tag.
Also try this to keep it a one-liner:
<?php echo get_post_meta($post->ID, 'img_upload', true); ?>
The first parameter passes the current post/page ID, the second one is the name of the metakey you need, and the third is for whether or not you want to force it to return just a single value, instead of an array. (True = single value, false = array).
That seems to work for me as well. I hope it’s an acceptable method. Thanks for the snippet!
Forum: Requests and Feedback
In reply to: My extreme frustration with Custom "Post" Types@new Nine Media
That is *exactly* the way I would like to use custom post types. They would behave as regular posts, but be automatically be placed in a certain category, and have their own custom meta boxes, if necessary. I’m currently using a combinations of the More Fields and More Types plugins to achieve this, but the posts created this way do not appear in the loop by default, as mentioned by sdodev.
Forum: Fixing WordPress
In reply to: Post not found after publishing it (not showing as permalink)NEVERMIND: Figured it out. Those posts I had problems with are future dated. (Well, today they are. Tomorrow only the first one will be.) I set up the query to show future posts in the listing, but WordPress still had a problem showing them in single view, so I had to use the Show Future Posts on Single Post plugin. It says it’s compatible up to 2.9.2, but it worked for me in 3.0.1 as well.
Forum: Fixing WordPress
In reply to: Post not found after publishing it (not showing as permalink)I’m having the same problem with three of the posts on one of my sites.
I think it’s not even a permalink problem, because even when I disable permalinks, I still get the “Not Found”.
Weird thing is that one computer (the one on which the posts were created) sees them just fine without the error, and every other computer I’ve tried gets “Not Found”. All other posts and pages work fine.
Here’s the category page containing the offending posts. The first three are the offending posts (try clicking on “View Details”):
https://www.missiontexas.us.php5-14.dfw1-1.websitetestlink.com/category/bidsJust to reiterate: It’s NOT a permalink problem. It persists when permalinks are disabled, and permalinks right now are working for all other posts and pages. I’ve checked and double-checked.
Forum: Themes and Templates
In reply to: A Different Class for Every Other PostVery helpful, thanks! I appreciate the commenting too. ??
Forum: Requests and Feedback
In reply to: Remove Categories with bulk editTakes me to a blank white page after I hit “Update”, but when I go back to the post listing & refreshed the page, I see that it did do it’s job. Thanks for the script!
Forum: Plugins
In reply to: [Plugin: Dynamic Headers] Getting Plug-in to work on Golf Course ThemeHi,
I see it’s been a couple of weeks, but if you’re still wondering about this, here is what I do for mine whenever the headers are background images, rather than inline images:The following goes in the <head> section of header.php, below the inclusion of your stylesheet.
<?php if(function_exists('dh_get_page_image_url')){ $dynamic_header_url = dh_get_page_image_url(); } ?> <style type="text/css"> #page { background-image: url(<?php echo WP_CONTENT_URL; ?>/header-images/<?php echo $dynamic_header_url;?>); } </style>
There’s some indication of this method under “Option 2” on this page, but you have to know what to do with the image URL after you retrieve it, which, in cases like these, is to assign it as the background image with the appropriate CSS.
Also,
$dynamic_header_URL
is supposed to return the full path of the image, but for me it always just returns the filename, hence the<?php echo WP_CONTENT_URL; ?>/header-images/
. If that doesn’t work for you, it may be returning the full URL, so you might try removing that part.Forum: Plugins
In reply to: [Plugin: PHP Browser Detection] Missing bracket on line 156Actually, it should look like this (I think), which I got from looking at the other if statements in that area:
if(isset($browserInfo['browser']) && $browserInfo['browser']=='iPhone')
Then it works. ??
No biggie. It was just posted today; I’m sure this was just an oversight & will probably be fixed shortly. I’ll try contacting the author.
Forum: Plugins
In reply to: Show Thumbnails for non-image AttachmentsHaven’t tried EG-Attachments, but Attachment Manager works perfectly fine for me.
I’m not exactly certain what you’re wanting these plugins to do. They don’t give a thumbnail of your *actual* document, they just give an icon representing the *type* of document. That is all that they claim to do.
See the screenshots for EG-Attachments here. The Attachment Manager plugin has less options, and its output looks very similar to the first image on that page.
Forum: Plugins
In reply to: Need more image sizes for your blog? Here’s a pluginThe plugin works great, I can see the new image sizes in my upload folder, but I was just wondering how exactly to call them into your theme with the “Get the Image” plugin.
Is it something like this?
<?php if ( function_exists( 'get_the_image' ) ) { get_the_image( 'default_size=my_new_image_size' ); } ?>
Thanks in advance.
-Amanda