Daniel
Forum Replies Created
-
Forum: Plugins
In reply to: [Ultimate Fields] Quick question about loading checkboxesOh and in checkboxes in repeaters I can do:
<?php if( $blueberries == 'blueberries' ) : ?>
So it doesn’t make sense that I can’t so it using a custom post type…
Issue was resolved with latest update. Thanks!
Bah! I was hoping you all had come to a solution. Same problem here. No events to display after updating and letting the cache do its thing overnight.
Forum: Plugins
In reply to: [Ultimate Fields] array_chunk outputs last repeaterI will try that and get back to you. I am using a repeater for a list of items on a weekly post, but I want to dynamically load the home page with the latest #1 item from the new post each week. So if I query the category of post, I should be able to grab the repeater and only output the #1 item to display on the home page. ??
Forum: Reviews
In reply to: [The Google+ plugin] Broke SiteYou need to log into your hosting client and delete the google folder under plugins.
Sent you a message. It might be something associated with never having worked with a Google Wallet Merchant account, but part of the problem might be that there is no clear way to set that up besides Googling Merchant Wallet account and getting a user and secret from Google.
Forum: Plugins
In reply to: [Ultimate Fields] Category Archive calling containerI’m dumb. This plugin is more intuitive than I gave it credit for and I was overthinking it.
<?php echo uf(person_name); ?>
Forum: Plugins
In reply to: [Twitter Bootstrap for WordPress] Popover to display an ImageGot it to work using the span for anyone else with the same issue.
<span rel="popover" data-placement="top" data-html="true" data-trigger="hover" data-content="<img src='IMAGE LINK'>" data-title="TITLE" style="padding: 3px;">HOVERABLE CONTENT</span>
Just replace the all caps stuff with relevant info.
Forum: Plugins
In reply to: [Ultimate Fields] A question about sets in repeatersYou should put that somewhere in a FAQ or something that using the extract name creates $ keys for the whole container and can be used almost like shortcodes within template design. Thanks again.
Forum: Plugins
In reply to: [Ultimate Fields] A question about sets in repeatersWorked like a charm. I owe you a five star and a resolved issue tag. Thanks a lot!
Forum: Plugins
In reply to: [Ultimate Fields] A question about sets in repeatersFrom what I know about ACF it probably needs to be in an array that calls something like
/* * Conditional statement (Checkbox rvalue is an array) */ if( in_array( 'red', get_field('field_name') ) ) { //... }
Or
/* * Query posts for a checkbox value. * This method uses the meta_query LIKE to match the string "red" to the database value a:2:{i:0;s:3:"red";i:1;s:4:"blue";} (serialized array) * The above value suggests that the user selected "red" and "blue" from the checkbox choices */ $posts = get_posts(array( 'meta_query' => array( array( 'key' => 'field_name', // name of custom field 'value' => '"red"', // matches exaclty "red", not just red. This prevents a match for "acquired" 'compare' => 'LIKE' ) ) )); if( $posts ) { //... }
Forum: Plugins
In reply to: [Ultimate Fields] A question about sets in repeatersI am using a repeater in your plugin. Within this repeater’s repeater fields I am using a checkbox set consisting of about 10 checkbox options. So far I’ve completed the code below:
<?php foreach( get_uf( 'Kickstarters' ) as $Kickstarters ): extract( $Kickstarters ) ?> <div class="col-md-6"> <h3><a href="<?php echo $kickstarter_url ?>" target="_blank"><?php echo $Name ?></a></h3> <p><?php echo $kickstarter_plug ?></p> </div> <div class="col-md-6"> <iframe frameborder="0" height="300" scrolling="no" src="<?php echo $kickstarter_url ?>/widget/card.html?v=2" width="220"></iframe> </div> <div class="clearfix"></div> <h3>In this Kickstarter:</h3> <div class="badges"> /** I NEED THIS DIV TO APPEAR ONLY IF I HAVE CLICKED THE CHECKBOX WITH THE SLUG "20_or_less" **/ <div class="col-md-3"> <img src="https://meeplemechanic.com/wp-content/uploads/2014/09/20-or-Less-Badge.png" alt="20 or Less Badge" width="100%" /> </div> </div> <?php endforeach ?>