jhonb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to create a Count buttonUsing analytics to show numbers of clicks? Well I think there is a simple way to implement it in WordPress. Nope ?
Forum: Plugins
In reply to: [Multiple Post Thumbnails] Add Attribute ItempropGot it using functions.php
add_filter('works_secondary-image_thumbnail_html','mediaboxlv_image_itemprop',10,3 ); function mediaboxlv_image_itemprop($html, $post_id, $post_image_id){ $html = str_replace('src',' itemprop="image" src',$html); return $html; }Cheers π
Forum: Fixing WordPress
In reply to: Conditions in wordpress loopTried this too
<?php $event_date = get_post_meta($post->ID, 'event_date', true); $args = array( 'post_type' => 'events', 'orderby' => 'meta_value', 'meta_key' => date('Y-m-d', $event_date), 'meta_value' => $today, 'meta_compare' => '>=', 'order' => 'ASC', 'posts_per_page' => '5', ); query_posts( $args ); if ( have_posts() ) { ?>Forum: Fixing WordPress
In reply to: Conditions in wordpress loopHey @vtxyzzy,
Thanks for the reply ! I tried:
<?php $event_date = get_post_meta($post->ID, 'event_date', true); $date = date('Y-m-d', $event_date); $today = date('Y-m-d'); $args = array( 'post_type' => 'events', 'orderby' => 'meta_value', 'meta_key' => 'event_date', 'meta_value' => $today, 'meta_compare' => '>=', 'order' => 'ASC', 'posts_per_page' => '5', ); query_posts( $args ); if ( have_posts() ) { ?>Doesn’t work, any idea? Thanks !
I think $event_date = get_post_meta($post->ID, ‘event_date’, true); doesn’t return anything outside the loop π
Forum: Fixing WordPress
In reply to: Transparent body, adjusting margins.[moderated contact info]
Forum: Fixing WordPress
In reply to: Transparent body, adjusting margins.@wpyogi no problem dude π
@adminforum87 No it changes directly. Please give me admin access, i’ll give a look. Btw you’ll need to make a child theme… It’s more flexible and you won’t lost your changes if you update your theme …
Forum: Fixing WordPress
In reply to: Add Custom date above or beside the titleAre you using a custom theme?
Forum: Fixing WordPress
In reply to: Navigation not fitting on one lieToo much padding ! Change your padding π
padding: 0 40px 3px 55px;
Forum: Fixing WordPress
In reply to: Transparent body, adjusting margins.You need to go back and make a child theme – changing theme files will lead to many problems down the road for you. You really don’t want to go there :).
+1 > Child theme
Forum: Fixing WordPress
In reply to: Transparent body, adjusting margins.Better with a fallback like
#page {
background: rgba(255, 255, 255);
background: rgba(255, 255, 255, 0.3);
}If you want it to work with IE 6/7/8 you need to add this to your header
<!--[if IE]> <style type="text/css"> .color-block { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF,endColorstr=#7FFFFFFF); zoom: 1; } </style> <![endif]-->Forum: Fixing WordPress
In reply to: Transparent body, adjusting margins.You can use CSS3 properties. Change this
#page { background: #fff; }to this:
#page { background: rgba(255, 255, 255, 0.3); }Forum: Fixing WordPress
In reply to: Sliders not working please helpDid you try updating this line
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=2.4.5″></script>
Use the lastest version of jquery !
Forum: Fixing WordPress
In reply to: Again:Horizontal footer menuYou can use the CSS property float: left; instead of display inline.
Something like
ul.navmenu li { float: left; margin-right: 10px; }Btw you need to fix float containment using hacks like a clearfix or creating a div with the class clear
It will look like:
<ul class="navmenu"> <?php wp_list_pages( 'title_li=' ); ?> </ul> <div class="clear"></div>And css:
.clear {clear:both;}Forum: Fixing WordPress
In reply to: Current-cat in single post typeHey guys,
Nobody knows? π
Forum: Fixing WordPress
In reply to: Displaying Parent category then Subcategory viewing parentNobody may help? :((