ryanve
Forum Replies Created
-
I think you’re good. I clicked on it and it’s not redirecting. Try clearing your browser cache and/or forcing refresh with a question mark: http://www.asbyo.com?
Forum: Themes and Templates
In reply to: Creating a child theme stylesheetGo with the child theme. If you don’t want the predefined styles, then don’t @import the parent’s stylesheet. The main problem with editing parent themes themselves is that if the parent theme comes out with an update, then you either have to remake all your customizations, or choose not to update and thus not take advantage of any new versions. Read this.
Forum: Themes and Templates
In reply to: Changing Text Area to Gradient or ImageGo to css3please.com/#box_gradient for an example of how to do this in CSS3.
Forum: Plugins
In reply to: get_posts with thumbnail onlyDoh! Or maybe not. The above actually doesn’t work. When I added orderby randomize posts w/o thumbnails shows up too. I tried meta_query as an array too. I’m back to this just showing 3, but I might just take out the thumbnail arg and just show the recent ones, all of which do have thumbs (added via ‘set featured image’)
$args=array( 'numberposts'=>5, //(should) show 5 posts 'post_type'=>'post', //posts only 'meta_key'=>'_thumbnail_id', //with thumbnail 'exclude'=>$post->ID, //exclude current post 'orderby'=>'rand' //randomize );Forum: Plugins
In reply to: get_posts with thumbnail onlyNice one! Changing meta_key to meta_query did it. Thank you =)
$args = array( 'numberposts'=>5, // show 5 posts 'post_type'=>'post', // posts only 'meta_query'=>'_thumbnail_id', // with thumbnail 'exclude'=>$post->ID // exclude current post );Forum: Plugins
In reply to: get_posts with thumbnail onlyBrilliant—thank you!
It works, except now I can’t seem to get it to show more than 3 posts.
If I set ‘numberposts’=>1 it shows 1. If I set ‘numberposts’=>2, it shows 2. If I set ‘numberposts’=>3 or higher it shows 3. Also they’re not the more recent three, which (I think) they should be by default.$args = array( 'numberposts'=>5, // should show 5 but only shows 3 'post_type'=>'post', // posts only 'meta_key'=>'_thumbnail_id', // with thumbnail 'exclude'=>$post->ID // exclude current post );Forum: Plugins
In reply to: jShowOff IssueProblem solved by changing all instances of
$tojQuery<script> jQuery(document).ready(function(){ jQuery('#basicFeatures').jshowoff({ links: false, controls: false, effect: 'fade', cssClass: 'basicFeatures', hoverPause: false }); }); </script>Forum: Plugins
In reply to: Multiple Instances Breaks ShortcodeSolved that too—see this thread.
Forum: Plugins
In reply to: shortcode attribute default value post->IDThis works—killer! Thanks =)
function user_profile( $atts, $content = null ) { global $post; extract(shortcode_atts(array('id' => ''), $atts)); include ('user-profile.php'); return $user_hcard; }Forum: Themes and Templates
In reply to: image full width of site.Sure thing!
Forum: Plugins
In reply to: shortcode attribute default value post->IDOf course 🙂
I already triedextract(shortcode_atts(array('id' => $post->ID), $atts));but no dice.
Forum: Plugins
In reply to: Multiple Instances Breaks ShortcodeNow the only thing I’m wondering is if there’s a way to set the ID to be the $post->ID by default so that if [user-profile] was used without specifying an ID, then it would still work. Any ideas?
Forum: Plugins
In reply to: Multiple Instances Breaks ShortcodeProblem solved!
I updated the code in user-profile.php code so that it was all PHP and did not use any echos. Then I changed the shortcode function to:
function user_profile( $atts, $content = null ) { extract(shortcode_atts(array('id' => ''), $atts)); include ('user-profile.php'); return $user_hcard; }I can now use the shortcodes wherever needed:
[user-profile id="1"] [user-profile id="2"] ...Nothing but net!
Forum: Themes and Templates
In reply to: image full width of site.Yes—if you want to do just that one use:
.page-id-38 .entry-title{border-bottom:10px solid #c00; width:930px !important} .page-id-38 #sidebar{margin-top:20px}FYI if you want to do a few of them you can group them with commas:
.page-id-38 #sidebar,.page-id-40 #sidebar{margin-top:20px}Forum: Themes and Templates
In reply to: image full width of site.Nice. A third option that would be much easier to manage in the long run is to forget the image and just use this in your stylesheet:
.page .entry-title{border-bottom:10px solid #c00; width:930px !important} .page #sidebar{margin-top:20px}