Forum Replies Created
-
AuthorPosts
-
Ren Ventura
MemberYou're welcome! You were using add_action when you should have been using add_filter since you were modifying the query.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberI'm still getting the error that it's offline.
However, peeking at your theme's stylesheet, it looks like the issue is there. The syntax highlighting stops at a certain point, which usually means there's a syntax error at that location. Unfortunately, I can't tell you what line because it all appears on one, which may also have something to do with it.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberThe reason it didn't work when you were using the blog template is because the blog template does not use the main query. Therefore, trying to customize the main query on the blog template won't work. Here's a helpful post from Bill Erickson that goes into detail.
http://www.billerickson.net/dont-use-genesis-blog-template/
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberHi, Greg. This won't impact any pages or images because none of those are saved in the stylesheet. The worst that will happen is that your customizations will be lost. If that's no big deal, then go ahead and upload a fresh copy of style.css. If you can share a link, someone can take a look and perhaps figure out what's going on. It's likely just a syntax error that can be easily fixed.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
December 6, 2014 at 8:19 am in reply to: Hiding post meta and post info only for a special category #133806Ren Ventura
Member//* Remove post info and meta on posts with a particular category add_action ( 'get_header', 'rv_cpt_remove_post_info_genesis' ); function rv_cpt_remove_post_info_genesis() { if ( has_category( 'category-slug' ) ) { remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); } }
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberTry this:
https://gist.github.com/EngageWP/a4696c3c3ddb829bb42d#file-remove-categories-blog-index-php
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberIt's hard to pinpoint the exact issue without seeing the theme files and admin because it could be a few things. Since it's outputting the same thing for every post, it seems that there may be something up with the conditional but nothing is standing out to me at this point. Also, since the content isn't being populated dynamically, there may be something in the templates as well.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberSo it's only working on the first post? Do you have any further conditionals in your template that could be interfering?
You may also be having an issue because you're comparing the value of your meta key to an integer. The third argument in get_post_meta() is set to true so the function is returning the value as a string (see http://codex.wordpress.org/Function_Reference/get_post_meta). I obviously can't be sure on this without knowing the values of ticketCompany.
Also, just as a small tip, you should pull out
get_post_meta($post->ID,'ticketCompany', true)
from your if statements, store it in a variable and compare the variable. This will prevent repetition (DRY).
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberSince you're not using a header right widget, your site title area, by default, takes up 100% of the width. You can change this by adding a widget to the right header widget area or by editing the .title-area on line 1084 of your style.css.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberCorrection: line 388. Sorry!
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberOn line 288 of your style.css, change
width: auto;
towidth: 100%;
.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
December 5, 2014 at 9:46 pm in reply to: Display two pages with two different templates on one page #133777Ren Ventura
MemberFor some context, can you explain why you're not just using one page and one template?
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberI couldn't see your site because it's offline. You may need to contact your hosting provider regarding that.
About the issue of your design disappearing on internal posts, are you using any custom templates in your child theme? If so, check to make sure you've include
genesis();
at the end of the template.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberYou need to edit the centric_post_title() function, which starts on line 82 of functions.php. The first if statement needs to look something like this (not tested):
if ( ( is_page() && !is_page_template() ) || is_home() )
Just modify it to your preferences.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberHave you confirmed it's not in the Site Title setting (under General Settings)? It could also be in the settings of your front page if you've entered a custom SEO title.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
December 5, 2014 at 4:52 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #133745Ren Ventura
MemberDecember 5, 2014 at 4:43 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #133742Ren Ventura
MemberJust add the posts_per_page argument to the query. I updated the gist.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
December 5, 2014 at 4:00 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #133738Ren Ventura
MemberI went through and modified the code you had. There were some issues so I cleaned it up and made some necessary adjustments. This should work for you. Just note that when I edited the code, I did not include the genesis() function at the end so you'll need to add that if using it on a page template.
https://gist.github.com/EngageWP/50eca14875dc985e904b
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberIf I'm understanding correctly, you want to add a custom area to the end of a post's excerpt. Inside that custom area should be some basic markup that contains the content of an external PHP script. If that's correct, try something like this.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
Ren Ventura
MemberThe body tag is not contained within a child theme; it's in Genesis core. Depending on what you need to do, there is almost certainly a solution that doesn't require editing Genesis core. If you're trying to add JS, you can follow Andrea's tip or use wp_enqueue_script(). If you're trying to add a custom body class, you can see this article.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
-
AuthorPosts