Doodlebee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp get archives link loads index.phpRight, but I’m trying to get a feel for how your content is inserted. It was a little confusing, as you have some links going to .html files, etc. Your archive for the news section is here:
http://kondwani.com/stamp/category/news/
But your news archive link for February 2011 is linking to here:
http://kondwani.com/stamp/2011/02/
which is supposed to be the archive for the entire site – it’s not “news” specific. But your “news” stuff should be in there – but you’re right, it’s going to the index page.
Does your index.php have a layout for the archives? or do you have an archive.php template file in your theme? The category listing is showing up fine, so that tells me you have something for perhaps a specific category setup, but probably you don’t have a default archive setup – save the index.php file. If your index.php file doesn’t have an archive-specific loop, and you don’t have an archive.php file, then it’s just going to show the index page.
Forum: Everything else WordPress
In reply to: Can I include my own mysql content in my pages?Do you mean you already have an existing database with information on it, and you want to pull that information for display on your WP pages? If that’s the case, then yes, you can. You have to write your own queries to do it, but it shouldn’t be a problem. You can either write functions (to reuse stuff) in your theme’s functions.php file or just put the queries into the template file you want the stuff to show up on.
Forum: Fixing WordPress
In reply to: wp get archives link loads index.phpchange that. That’s odd. I just tried it again and it all finally came up.
Most of your links dont’ work – I either get a 404 page or it goes to the index page. Do you have “news” set for your category base in your permalinks? Or are your permalinks set at all?
Forum: Fixing WordPress
In reply to: .docx files and functions.phpInteresting. I’ve uploaded .docx files with no problem in WordPress. The behavior you’re describing has never happened to me.
What plugins do you have installed? or maybe your theme? have you tried deactivating all plugins and switching to twentyten to see if you’re still having the issue?
Forum: Plugins
In reply to: Sidebar Widget Information Depending on User LocationI think you *may* have a problem with this. Usually, getting this type of information is really buggy – mainly because it’s gathered from the location of the server that the end user is getting his connection from. The server is not always in the same area as the end user. You can obtain the IP address and try to get a location form that – you may end up closer, but it still won’t get it right many times. For instance, I’ve gone to several sites that indicate where I am by looking up my IP address, and every time they put me in New Hampshire. I live in Connecticut. If I want to go to New Hampshire, I have to drive about 5 or 6 hours. (When I lived in West Virginia, it always put me in Columbus, OH – a solid 2.5 hour drive away.) I’ve *never* had someone write a script that can pinpoint where I am located and get it right. The only time it’s been correct is when I have my GPS turned on with my iPhone 😉
You’d be much better off writing something that provides a dropdown list of states that the end user can choose from, and once submitted, shows who they need to contact. Much more reliable and easier to code.
Forum: Plugins
In reply to: Get current page id in custom pluginfirst off, you’re missing a semi-colon after your global.
global $wp_queryshould be
global $wp_query;Secondly, what I suggested is you globalize the $post – you’re not doing that, so
$post->IDwill result in nothing.function hook_ajax_register() { global $post; $thePostID = $post->ID; $this->marketing_code = get_post_meta($thePostID, 'ReferenceID', true);try that.
Forum: Plugins
In reply to: Get current page id in custom pluginI don’t know. Have you tried print_r($post) and see what comes out? When stuff doesn’t do what I expect, I find var_dump() or print_r() helps me figure it out immensely – let’s me see what’s being grabbed, and if I’m calling the incorrect variable.
Forum: Themes and Templates
In reply to: Transforming WordPress into a Picture "Slideshow"You’re looking for a photoblog. There’s lots and lots of photoblog themes out there. I’m using one now for a client that pretty much does what you want: Reflection
Forum: Plugins
In reply to: Get current page id in custom pluginglobal $post; $postID = $post->ID;Forum: Fixing WordPress
In reply to: Hard coding site URL bad?yeah! What the both of them said LOL Those are better options 🙂
Forum: Themes and Templates
In reply to: is it possible to add a 'sub class' to an ID?adjusting how the plugin outputs the stylesheet reference
but that wouldn’t solve your issue. You’re wanting to add a class directly to your link output. That really has nothing to do with the stylesheet. (You can add your own style to your theme stylesheet to cover the new class addition – that’s not a big deal. There’s no need to code the plugin to pull in or edit the plugin’s styles.) But the class won’t apply unless it has something to apply *to* – which is why I was saying you’d have to edit the actual plugin (or whatever) to get that new class added in, and new code to determine *how* the class is added in, since you don’t want it on everything. The stylesheet on it’s own will do nothing. You have to edit the plugin functionality to add that class to the link itself for the style to apply.
If the lightbox is pulled in via shortcode, you could write our own function to combine with the plugin’s function that would allow you to add your extra class without editing the plugin’s core – but again, that requires some PHP knowledge.
Forum: Fixing WordPress
In reply to: Hard coding site URL bad?I wouldn’t do it because it adds an extra call to the database – I believe every time someone changes a page or clicks a link through the site – to update these options in the database. It’s completely unnecessary and adds extra load to the server.
If you want it there, I’d comment it out so you don’t have to rewrite it if you must. But I would definitely not just leave it there to run endlessly.
Forum: Hacks
In reply to: How do I show comment on non wordpress pageThe comments are linked to the post ID. If you’ve managed to pull in the post to the main site, then within that Loop for the post, you need to add the comments template call. (you probably want wp_list_comments instead of the entire form, et al, but it’ll display comments on that post based on the settings in your WP install)
Forum: Themes and Templates
In reply to: is it possible to add a 'sub class' to an ID?Your issue isn’t really editing or changing the stylesheet location, your issue is you want to change the output of the link that the plugin generates (stylesheets aren’t what adds the classes to the list items – stylesheets just tell the site how to make it look). You don’t say *how* you want this class to be determined. You can edit the plugin yourself (or better yet, contact the plugin author and see if he can help you with it) to have the ability to add a new class to the link in question, which probably won’t be easy – REALLY not easy if you don’t know how to code PHP.
Alternatively, you could write a function that looks for the link title/name you want and adds the class to it, but again, this requires some PHP knowledge. And if you ever want to do it to another link, then you’ll have to edit the code to make it work.
The only other option would be to add the link manually, either before or after what the plugin generates, with the class you want.
Forum: Plugins
In reply to: Gallery/portfolio in a post with one example imageYou can use the WordPress [gallery] tag to pop the gallery in the post. You can set a post thumbnail for the post, so when it shows up in the archive list/category listing template, it displays the post thumbnail.