Doodlebee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: query_posts in a reusable function?Well, when testing, I used a number (instead of a passed value) and it still didn’t function.
I found a workaround, but it required me basically to rewrite the function in another area. Works fine when I do that. So I have no idea what’s up. When I printed out the end result, it was exactly what it should be. I had it narrowed down to the fact that *before* the “while”, it was doing what it was supposed to be doing, but after the “while” part, it was not. i.e. if I printed out what was being pulled immediately after the “if(have_posts()): ” part, it was exactly what I wanted, but if I printed after “the_post():” it was just pulling the one item. so somewhere between “if(have_posts())” and “the_post()” something is doing the funky dance.
Very weird. I’ve chalked it up to a ghost in the machine. I hate that I had to rewrite it in a secondary spot (that’s the point of writing a function – to reuse it), but it’s working fine in the second spot. Makes no sense to me, but I’m letting it go!
Forum: Fixing WordPress
In reply to: Adding php scriptI don’t understand “while running this script”? If you’re popping PHP code into a post as content, here is no “running this script”. PHP code *will not run* if you insert it as text in the body of a post. You have to get a plugin and allows PHP code to run when it is content in the body of your post, and you have to read the instructions for the plugin to see how to activate the sections of code that should run. (i’s not as simple as install and activate – some of them require the use of tags to differentiate between text and code that should be processed).
But just popping code into the body of a post won’t work – it’ll output it as straight text unless you use a plugin, or write your own code in your functions.php file that pops it in.
Forum: Fixing WordPress
In reply to: WordPress Pages at root but Blog in subdirectoryin the back end, under “settings > Reading” (or Writing – I forget which one) there’s a spot to set your default category. You have to be sure the category is created first. The default is “Uncategorized.” You can just rename that category to “blog” and you don’t have to do anything else.
Forum: Fixing WordPress
In reply to: How to access the source code of my blog siteyour “source code” is your theme files. But it sounds like they just want you to write a post so you can verify that it’s your site – you don’t need the source code. So they’re assuming people have static sites, and using a poor choice of words ot explin.
Basically you want to write a post, and plug that text in the post. Publish. Visit the new post. Copy the URL. Submit it to them with the URL to this page.
Forum: Fixing WordPress
In reply to: WordPress Pages at root but Blog in subdirectoryWordPress does not contain directories. If you want your blog in the “blog” section, create a category called “blog” and make it your default. When you post, it’ll post to that category. You won’t need to edit the permalink structure for anything to do this.
Forum: Fixing WordPress
In reply to: Moz border radius not working in Firefox 3.5What rounded corners are you referring to? I’m running Firefox on Mac OSX, and they’re rounded.
edit: OIC.
remove this line from your footer:
background-image:url(‘http://vrpsych.ict.usc.edu/wp-content/test/2010/10/footer_bgheader7.jpg’);
it’s covering your rounded corners.
You might want to validate – you’re missing some tags, and your css file should have everything in lowercase. Validating would help find your errors.
Forum: Fixing WordPress
In reply to: Adding php scriptYou can’t place PHP code within a post without a plugin. You either need to obtain a plugin that allows PHP to run from within a post, or write a function and apply the function to the template file.
Forum: Fixing WordPress
In reply to: Moz border radius not working in Firefox 3.5You’re missing a semi-colon after the first line.
-moz-border-radius: 1emshould be
-moz-border-radius: 1em;Forum: Fixing WordPress
In reply to: unable to post even as adminSounds like you’re using a WordPress hosted account – not a self-hosted version. if that’s the case, you’re posting on the wrong forum. You need to be here –> WordPress.COM Forums
Yes, I thought it was strange, as well – I didn’t figure the Organize Series would mess with the RSS (I know what the simplepie is for) which is why I figured I should report it. I can see how it’s *possible*, but I would consider it more on the “not likely.” but the reason I came to the conclusion was because I disabled all of my plugins and reverted back to the “default” theme, and the site worked fine until I enabled “Organize Series.” Even with all other plugins shut off, it still did it.
As for what MySQL version… let me check that… 5.0.91-community (and if it helps, Apache 2.0.63)
Again, when I increased the memory_limit (via wp-config.php) everything seemed to right itself. This isn’t a server I typically wok from, so I don’t know if the host had some weird config settings in order or what, so I’m willing to blame them, because otherwise, it’s an awesome plugin and VERY useful 🙂
Just a note – increasing my memory_limit via wp-config.php did work.
Forum: Fixing WordPress
In reply to: Pulling Page content into top of category – an issueHeh. Nevermind – I figured it out.
<?php get_header(); ?> <?php if(have_posts()) : ?> <div id="outerwrap" class="clear"> <h3>Category title here</h3> <?php if(is_category('dogs')) { ?> <div <?php post_class('clear') ?> id="post-<?php the_ID(); ?>"> <div class="entry clear"> <?php $dogs = get_page_by_title('Page name here'); $dogsID = $dogs->ID; $dogs = get_page($dogsID); $content = $dogs->post_content; list($first) = explode('<!--nextpage-->', $content); $dogscontent = apply_filters('the_content', $first); echo $dogscontent; ?> <!--/entry--> </div> <!--/post-<?php the_ID(); ?>--> </div> <?php } ?>Maybe that’ll help someone else 🙂
Forum: Fixing WordPress
In reply to: register_post_type not showing TagsOkay, I got it. Apparently, I needed to pop this all into a function and call on init.
// add the goodies add_action('template_redirect', 'quotes_redirect'); add_action('init', 'create_quotes_management'); function create_quotes_management() { // create the post type register_post_type('quotes', array( 'labels' => array ( 'name' => __('Quotes'), 'singular_name' => __('Quotes Management'), 'add_new' => _x('Add Quote', 'quotes'), 'add_new_item' => __('Add Quote'), 'edit' => _x('Edit Quotes', 'quotes'), 'edit_item' => __('Edit Quote'), 'new_item' => __('New Quote'), 'view' => _x('View Quote', 'quotes'), 'view_item' => __('View Quote'), 'search_items' => __('Search Quotes'), 'not_found' => __('No Quotes Found'), 'not_found_in_trash' => __('No Quotes found in trash.') ), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', '_builtin' => false, 'hierarchical' => false, 'rewrite' => array('slug' => 'quotes'), 'query_var' => false, 'supports' => array('title', 'editor', 'excerpt'), 'taxonomies' => array('post_tag') ) ); } // Template selection function quotes_redirect() { global $wp, $wp_query; if ($wp->query_vars["post_type"] == "quotes") { // Let's look for the property.php template file in the current theme if (have_posts()) { include(TEMPLATEPATH . '/quotes.php'); die(); } else { $wp_query->is_404 = true; } } }Now it’s working fine! (However, I still cannot fathom why this mysterious “Slug” thing has shown up under my Excerpt area – really weird. i can’t even find it in the database anywhere to see if I can delete it that way…)
Forum: Fixing WordPress
In reply to: Add additional class to get_the_post_thumbnail()?aha! Awesome! Thank you!
Forum: Fixing WordPress
In reply to: adding post content to admin pageHa! figured it out. Turns out I was using an “AND” statement (to call in meta keys) in my query that I didn’t need, and was screwing things up. Works fine now!