Forum Replies Created
-
AuthorPosts
-
Kendra,
You’ve got two DIVs with the same ID of “featured-top”, one inside the other – you should only have one ID per page. If you change that inner DIV to a different ID, or better yet make it a class, I think you’ll find your answer.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Oh, and these two Codex articles on categories should be helpful:
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Kent,
I would try this:
Make a copy of page.php from your Genesis directory, and rename it category.php
In that file, above the ending genesis(); function, add this code:
if is_category( 'players' ) {
// Customize the Loop
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'players_category_order_custom_loop' );
function players_category_order_custom_loop() {
global $paged;
$args = array( 'order' => 'ASC','orderby' => 'name','paged' => $paged );
// Accepts WP_Query args (http://codex.wordpress.org/Class_Reference/WP_Query)
genesis_custom_loop( $args );
} // End players_category_order_custom_loop
} // End is_category( 'players' )You could clean that up with some line breaks and indenting, but the code editor here won’t let us do that.
You may also want to flush your permalinks: go to Settings > Permalinks and click “Save Changes”
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
in_category lets you check if a post or posts are in a specific category, then you can do stuff with those posts.
is_category checks if a specific category (or categories) archive is being displayed, then lets you do stuff with those categories.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Shoot me an email at john@blackhillswebworks.com if you want me to take a closer look.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
katmmad,
You’ve got some serious script issues on that website. If you check it in Google Chrome with Tools > JavaScript console enabled you’ll see a list of warnings and errors.
I checked the first post you linked to in this thread using Firefox, disabled all JavaScript using the Web Developer Toolbar, refreshed the page and your post appeared like it should. I did this in Chrome as well and used the Tools to disable JavaScript and the post appeared.
I’d take a close look at the advertising scripts you’re using.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
It looks like if you’re using an array you need to NOT put the single-quote around the ID. Check out the example from the Codex:
is_category( array( 9, 'blue-cheese', 'Stinky Cheeses' ) );
// Returns true when the category of posts being displayed is either term_ID 9, or slug "blue-cheese", or name "Stinky Cheeses".
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Hi Kent,
When in doubt, I nearly always go to the WordPress Codex and search for the function or whatever it is I have a question on. I think you’ll find your answer on this Codex page in the examples: http://codex.wordpress.org/Function_Reference/is_category
And for inserting code here in the forums, after I type or paste it in I switch over to the HTML tab, select the code, and click on the “code” button in the toolbar. Your code needs to be single-spaced for it to work, but I’ve found that I can switch back and forth from Visual to HTML and the code styling stays there. Here’s an example (from that Codex page):
is_category( '9' );
// When the archive page for Category 9 is being displayed.John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Excellent – harness those powers!
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Go with Nick’s option – better to remove it than hide it.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
The simplest way to remove that page navigation would be to add this code at the bottom of your style.css file:
#content .navigation {
display: none;
}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
A link to the site would help us help you…
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Which version of IE?
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
Jeff,
You can add this code to your home.php file to remove the Loop and the sidebar from your home page:
remove_action( 'genesis_loop', 'genesis_do_loop' );
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );Then you could do something similar to remove the sidebar on the other page templates, or work up a function with a conditional in your functions.php file and specify which pages it runs on.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
I was able to duplicate this on a new development site that I’m working on, and after looking on Google I found this solution, which I tried and it worked for me. It involves a database SQL query, but it works.
http://wordpress.org/support/topic/cant-get-my-comments-to-work-for-old-posts?replies=3
I’d still double-check the existence of a comment plugin of some sort. Something is adding a math captcha to the comment form, unless that’s included in WordPress now?
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
-
AuthorPosts