aronjeney
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination only works with one category IDHey keesiemeijer, thanks! That does work and will work if I’m forced into it however do you have any idea why I can remove categories altogether to simply filter in all categories with pagination? ideally I would like to call all but one specific category by excluding (‘cat’ => -12 does not work either). ?? Am I doing something wrong with my query args or what am I doing wrong?! Thanks again, all help is truly appreciated!
Forum: Fixing WordPress
In reply to: Get/Print keys/values from specific meta_box (custom fields)Anybody? ?? I’m still bangin my head on my desk over here. Do I need to add an additional global call? Maybe something like “global $callback;”?
Again, of course really appreciate all and any help. Thanks all!
Forum: Fixing WordPress
In reply to: Get/Print keys/values from specific meta_box (custom fields)I am actually trying to filter posts based on their meta data. Again, I’ve been able to do this in the past, however the meta data was all in one file vs individual meta files as I listed above. I believe it is the individual functions within each meta file that are getting in the way because if I comment the functions out temporarily I am able to print and display the data in my filters. I am not sure if I need to call the functions somewhere else somehow or add to my filter query or how I go about that. See below for more details..
Here is my filter code (how I’ve done it in the past) with the “print” included to test:
<ul id="filters"> <li><span>Sort by:</span></li> <li> <?php $id = $_GET['directory_category']; print_r($meta_box['add_meta_boxes']['metabox_directory']['fields'][4]['options']); ?> <select id="sortCategory"> <option value="" type="hidden">Category</option> <?php foreach($meta_box['fields'][4]['options'] as $directoryKey => $directoryValue) { ?> <option value="<?php echo add_query_arg(array('directory_category' => $directoryKey)); ?>"><?php echo($directoryValue);?></option> <?php } ?> </select> </li> </ul>
And again, I think the function and/or callback is my culprit (top and bottom lines):
<?php add_action('add_meta_boxes', 'metabox_directory'); function metabox_directory(){ $meta_box = array( 'id' => 'metabox-directory', 'title' => __('Custom settings for "Directory"'), 'description' => __('Fill in this listing\'s details below..'), 'post_type' => 'directory', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => __('Header Image'), 'desc' => __('The image should be no less than 1400-2000px wide'), 'id' => 'header_bg', 'type' => 'file', 'std' => '' ), array( 'name' => __('Listing Address'), 'desc' => __('What is this listing\'s address?'), 'id' => 'directory_address', 'type' => 'text', 'std' => '' ) ) ); $callback = create_function( '$post,$meta_box', 'create_meta_box( $post, $meta_box["args"] );' ); add_meta_box( $meta_box['id'], $meta_box['title'], $callback, $meta_box['post_type'], $meta_box['context'], $meta_box['priority'], $meta_box ); } ?>
Again, do I need to call the functions and callbacks elsewhere somehow maybe? Thanks again for all and any help!!
Forum: Plugins
In reply to: [Collapse-O-Matic] Add expand functionality to additional buttonHi again Baden, Im not sure I’m following exactly unfortunately. How would you go about anchoring with divs or spans vs A tag?
Forum: Plugins
In reply to: [Collapse-O-Matic] Add expand functionality to additional buttonYep exactly. Thanks Baden, I will give this approach a shot!
Forum: Plugins
In reply to: [Full Breadcrumb] Change "blog"/home linkIs this not possible or does anybody have any ideas for me? I really like this plugin and would hate to have to change to a different method after implementing throughout my whole site. Again, all and any insight is appreciated, thank you!
Forum: Localhost Installs
In reply to: Setup root directory on MAMPThanks all. Sounds like relative/absolute paths has been an issue / desired feature for WP for a while now. I hope this changes in the future but I will be sticking to absolute paths for now. I appreciate your insight!
Forum: Localhost Installs
In reply to: Setup root directory on MAMPHmmm.. Did I not word that correctly? I would definitely appreciate any input on this matter. Let me know if this is confusing and I will try to re-word. Thanks in advance!
Forum: Plugins
In reply to: [Taxonomy Images] Custom Taxonomy images within loop?Hey Jeff,
Im also strugglin within the loop. Any luck on this by chance or can someone please help point us in the right direction? Thanks in advance!
Forum: Themes and Templates
In reply to: Web colors only in TwentyThirteen?This actually seems to be cross browser issue as Safari renders the color correctly but not Chrome or Firefox. I’ve found a similar article that states the same issue but only for Chrome, not Firefox. They also claimed to have fixed by restarting Chrome but I have had no luck. Does anybody have any ideas? This is driving me crazy! Thanks again in advance!
Forum: Plugins
In reply to: [Column Posts] Facebook Like button in Excerpt@lebasca thanks for this. Unfortunately I have been unable to get this working. I would like to add this to all my excerpts not just the front page (I am manually calling posts on various pages. How would I go about changing the script so that the Fb like appears on all excerpts in addition to the front page? Thanks in advance!
Forum: Plugins
In reply to: [Quicksand Post Filter jQuery Plugin] More than one filter menu?This would definitely be a great feature. Hopefully soon to come! ??
Forum: Hacks
In reply to: Adding custom loop to pluginI really appreciate the time that you put into writing this post and your interest in helping me and others learn. Although I was able to accomplish what I needed by “hacking” the current filter, I really value this lesson and your willingness to help others. Thanks so much again for all your help so far. I’ve seen you around the support forum quite a bit so Im sure this wont be the last time we chat. Thanks again bcworkz!
Forum: Plugins
In reply to: [Manual Related Posts] Adding your own contentOk, I’ve been able to add my own content, however my code (below) only calls the post data from the current post for my custom meta keys (beds, baths, sq ft, and price). I tried adding my meta keys to the $ids (line 42 of both end-nojax.inc.php)
$ids = get_post_meta( $post_id, '_yyarpp', 'locality_property_bedrooms', 'locality_property_bathrooms', 'locality_property_size', 'locality_property_price', true );
but no such luck. How do I go about calling my custom meta keys content from the manual chosen posts? Please, if anyone has run into this or has any insight I would truly appreciate some help! Thank you.'<div class="home-property-item"> <div class="property-detail-block"> <div class="property-pic-wrapper"> <a href="' . esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) ) . '">' . $thumb . '</a> </div> <h4><a href="' . esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) ) . '">' . apply_filters( 'the_title', get_the_title( $id ) ) . '</a></h4> <div class="features-wrapper"> <span class="bed"><div class="value">' . apply_filters( 'get_post_meta', get_post_meta($post->ID, 'locality_property_bedrooms', true) ) . '</div>Beds</span> <span class="bath"><div class="value">' . apply_filters( 'get_post_meta', get_post_meta($post->ID, 'locality_property_bathrooms', true) ) . '</div>Baths</span> <span class="size"><div class="value">' . apply_filters( 'get_post_meta', get_post_meta($post->ID, 'locality_property_size', true) ) . '</div>Sq. Ft.</span> <div class="price-box"> <h5 class="price">$' . apply_filters( 'get_post_meta', get_post_meta($post->ID, 'locality_property_price', true) ) . '</h5> </div> </div> <div class="learnmore"> <a href="' . esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) ) . '" class="blue">LEARN MORE</a> </div> </div> </div>';
Forum: Hacks
In reply to: Adding custom loop to pluginOk, I have been able to call the post meta by adding apply_filters(‘get_post_meta’…, HOWEVER, it is calling the post meta of the current post that is being viewed rather than the post meta of the manually added posts.
See my code below..
`<span class=”bed”><div class=”value”>’ . apply_filters( ‘get_post_meta’, get_post_meta($post->ID, ‘locality_property_bedrooms’, true) ) . ‘</div>Beds</span>’
What am I doing wrong? :/