Forum Replies Created
-
AuthorPosts
-
khcreativemediaMember
OK, I discovered this was user error. Another author in the site changed my categories and didn't tell me. So problem solved. Sorry for the post.
khcreativemediaMemberAnyone have any suggestions?
khcreativemediaMemberIn fact, here is the tutorial I used to do what I"m trying to do. It works great, aside from the pagination and it only shows 6 posts, regardless what I set it to.
khcreativemediaMemberI should have said pagination, not navigation. The pagination only works when the page is set to be the sites "blog" page.
khcreativemediaMemberI'm referring to the archive post page navigation at the bottom of the page.
March 29, 2015 at 6:04 pm in reply to: Agentpress – don't display empty property detail fields #146038khcreativemediaMemberCircling back to this, as I have yet to figure out how to do it. Project is wrapping up now and this is one of the last items on my "To-Do" list.
If anyone could lend a hand, I would greatly appreciate it. Brad was a great help, but I'm not sure where to put his code or how to finish it.
Thanks,
KeithFebruary 25, 2015 at 6:02 pm in reply to: Agentpress – don't display empty property detail fields #142293khcreativemediaMemberSo I would add each of the options (like _listing_growth_rate) to this and then where exactly would this code go in the code I displayed in the post above. Again, such a newbie, sorry.
February 25, 2015 at 7:37 am in reply to: Agentpress – don't display empty property detail fields #142197khcreativemediaMemberThanks coralseait. Sounds exactly like what I was thinking, but I don't know how to write it in code. If you have time to help explain it with my code, I would greatly appreciate it. Sorry, learning curve.
Keith
February 24, 2015 at 9:09 pm in reply to: Agentpress – don't display empty property detail fields #142140khcreativemediaMemberSure. I have the following in the functions file:
//* Filter the property details array add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' ); function agentpress_property_details_filter( $details ) { $details['col1'] = array( __( 'Population:', 'agentpress-listings' ) => '_listing_population', __( 'Average Household Income:', 'agentpress-listings' ) => '_listing_average_household_income', __( 'City:', 'agentpress-listings' ) => '_listing_city', __( 'State:', 'agentpress-listings' ) => '_listing_state', __( 'ZIP:', 'agentpress-listings' ) => '_listing_zip', __( 'Growth Rate:', 'agentpress-listings' ) => '_listing_growth_rate', __( 'Retail Sales:', 'agentpress-listings' ) => '_listing_retail_sales', __( 'Traffic Counts:', 'agentpress-listings' ) => '_listing_traffic_counts', __( 'Space Available:', 'agentpress-listings' ) => '_listing_space_available' ); return $details; }
February 24, 2015 at 8:47 pm in reply to: Agentpress – don't display empty property detail fields #142134khcreativemediaMemberYes, I need to avoid using css as this will vary between listings.
Keith
February 24, 2015 at 8:27 pm in reply to: Agentpress – don't display empty property detail fields #142131khcreativemediaMemberIt's for a single page. Here is an example page: http://rese.khcreativemedia.com/?listing=arab-town-plaza
Would like to not show "Retail Sales" and "Traffic Counts".
Thanks.
February 24, 2015 at 8:24 pm in reply to: Agentpress – don't display empty property detail fields #142129khcreativemediaMemberThanks Brad,
Right, the PHP needs to be modified. The problem is I don't know PHP enough to figure it out. I've spend a couple hours trying to learn but haven't succeeded yet. Can anyone offer any coding assistance?
Thanks,
KeithNovember 20, 2014 at 9:22 pm in reply to: use alternative image for genesis responsive slider #132343khcreativemediaMemberThanks Davinder. I checked out that slider and from the description I don't see where it will have any additional options like I need either.
I'm fine with modifying the existing slider plugin that I'm using, I just don't know php well enough to do so. Don't want to have to restyle my slider if I replace it.
Keith
khcreativemediaMemberNo, I never resolved this and decided to go another direction. So not resolved, but I'll close it since no one is responding.
Thanks,
KeithSeptember 3, 2014 at 11:01 pm in reply to: Agentpress – widgets not connecting with home page #122713khcreativemediaMemberSometimes it's the simplest answers. This took care of it. Originally I didn't want to do this because I didn't want to overwrite my file. Looks like I hadn't made any real changes in there after all.
Thanks,
KeithkhcreativemediaMemberI figured it out using Carrie Dils price sorting post. Below is the code placed in the functions file.
/** * Change the post order for listings * * @author Carrie Dils * @link http://www.billerickson.net/customize-the-wordpress-query/ * @reference http://codex.wordpress.org/Class_Reference/WP_Query * */ add_action( 'pre_get_posts', 'cd_listing_sort_order' ); function cd_listing_sort_order( $query ) { if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'listing' ) ) { $state = genesis_get_custom_field( '_listing_state' ); $query->set( 'meta_key', $state ); $query->set( 'orderby', 'meta_value' ); $query->set( 'order', 'asc' ); //list high to low $query->set( 'posts_per_page', '50' ); } }
Keith
khcreativemediaMemberMakes sense. I'll give it a shot. thanks
khcreativemediaMemberNo, these post will flow in within the rest of the posts. So I need them to be filtered somehow so that regular post pull the except and cpt pull the content. Make sense?
Thanks Jen,
Keith
khcreativemediaMemberThank Susan. I just got it to work using the following code:
<?php
/**
* Template Name: Minimum Archive
*/add_action( 'genesis_after_loop', 'custom_archives' );
function custom_archives() {
echo '<div>';
$cats = get_categories();
foreach ($cats as $cat) {echo $category->name; //category name
$cat_link = get_category_link($category->cat_ID);
echo '<h3><a href="'.$cat_link.'">'.$cat->name.'</a> </h3>';query_posts('cat='.$cat->term_id.'&showposts=500');
echo '<ul>';
while(have_posts()) : the_post();?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?> - <?php the_date(); ?></a></li>
<?php endwhile;
echo '</ul>';
}
?>
</div><?php
}
genesis();khcreativemediaMemberThanks Tisha. I actually contacted support and gave Nick my login info for him to look around. Hopefully he can help me out and if it's a problem, make corrections in the next release.
Keith
-
AuthorPosts