Forum Replies Created

Viewing 15 replies - 106 through 120 (of 153 total)
  • Hi. How do you call the image? Something like this should work:

    <a href="YOUR LINK" title=""><img src="<?php bloginfo('template_url'); ?>/YOUR IMAGES THEME FOLDER/YOUR IMAGE" alt="" width="" height="" /></a>

    Solved!!! I didn’t notice about the quotes in AnHeLLiDo solution.

    Thanks!

    I used the fanpage hack. Weird thing is that it works for me with the id

    224541566232

    but is not working with the id

    179972452036728

    Does anyone knows why is this happening?

    Thanks in advance.

    ps: sorry for my english.

    Hi. I want to show the category image for each category in a list of categories with title and description but I cant’t figure out how to do it. Can anyone help me with my code?

    My code look like this:

    <?php
    	$args=array(
    	'parent' => 230,
    	'orderby' => 'slug',
      	'order' => 'DESC',
    	'hide_empty' => 0
      	);
    	$categories=get_categories($args);
      	foreach($categories as $category) {
        echo '<div class="category-productos">';
    	echo '<div class="thumbnail-category">';
    // I WANT THE PICTURE HERE
    	echo '</div>';
    	echo '<div class="post-text">';
    	echo '<h3 id="'. $category->cat_ID .'"><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '">'. $category->cat_name .'</a></h3><div class="wraper"></div>';
        echo '<p>'. $category->description . '</p>';
    	echo '</div>';
    	echo '<div class="wraper"></div></div>';
    	}
    ?>

    Everything works ok except for the picture. Any help would be apreciated.

    Thanks in advance.

    ps: sorry for my english.

    Thread Starter chavo

    (@chavo)

    Well…I don’t know why, but I changed the publishing date of a current month post and the plugins now works fine.

    Great function. I need it because of some images galleries I’m publishing. But the function is not working for me. When I click “duplicate” the duplication is not processed and I get this message:

    UPDATE wp_posts SET post_author = "1", post_date = "2010-09-11 15:02:07", post_date_gmt = "2010-09-11 15:02:07", post_content = "", post_title = "yerbatal 10", post_excerpt = "", post_status = "inherit", comment_status = "closed", ping_status = "closed", post_password = "", post_name = "yerbatal-10-2", to_ping = "", pinged = "", post_modified = "2010-09-11 15:02:07", post_modified_gmt = "2010-09-11 15:02:07", post_content_filtered = "", post_parent = "796", guid = "http://www.kraus.com.ar/v2/wp-content/uploads/yerbatal-10.jpg", menu_order = "1", post_type = "attachment", post_mime_type = "image/jpeg", comment_count = "0" WHERE ID=797

    What’s wrong?

    ps: sorry for my english.

    Thread Starter chavo

    (@chavo)

    Works!

    Thread Starter chavo

    (@chavo)

    Sorry for the late reply. I was really busy.

    There goes my answers:

    1) 2.9.2
    2) The latest version
    3) Advanced Excerpt, Order Categories, Sociable, Wp No category base, Wp Paginate
    4) I’m excluding pages.

    Now I can’t access to admin because the people who commissioned me the work change the password and admin e-mail because the work is finished. But I would love to get the plugin working for future projects (I often build sites using WordPress)

    ps: sorry for my english

    chavo

    (@chavo)

    Hi. I’m looking for same goal but I just want to get post content, not header, no footer, only the post. Is this possible?

    Thanks in advance.

    Thread Starter chavo

    (@chavo)

    I just added a “Banner home” custom field to a page and remove ‘category’=>’noticias’ and the query display it, but doesn’t display posts in categories. So, my code looks like this now:

    <?php $args=array('post_type' => 'any', 'post_status' => 'publish', 'meta_key' => 'Banner home', 'posts_per_page' => 3);
    	$my_query_bannerhome = new WP_Query($args); ?>
        <?php if ($my_query_bannerhome->have_posts()) : while ($my_query_bannerhome->have_posts()) : $my_query_bannerhome->the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
    	<?php if ( function_exists( 'get_the_image' ) ) { get_the_image(
    		array(
    		'custom_key' => array( 'Banner home' ),
    		'default_size' => '',
    		'attachment' => false,
    		'link_to_post' => true,
    		'image_scan' => false,
    		'width' => '980',
    		'height' => '350',
    		)); } ?>
        </div>
        <?php endwhile; endif; ?>

    It still doesn’t shows all the post with this custom field.

    ps: sorry for my bad english.

    Thread Starter chavo

    (@chavo)

    Hi Michael. Mmmmm…I’s weird. It’s doesn’t work for me. I just change your code to this:

    <?php
    $args=array(
      'meta_key'=>'Banner home',
      'post_type' => 'any',
      'post_status' => 'publish',
      'posts_per_page' => 3,
      'caller_get_posts'=> 1
    );
    $my_query = null;
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
      while ($my_query->have_posts()) : $my_query->the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
    <?php if ( function_exists( 'get_the_image' ) ) { get_the_image(
    		array(
    		'custom_key' => array( 'Banner home' ),
    		'default_size' => '',
    		'attachment' => false,
    		'link_to_post' => true,
    		'image_scan' => false,
    		'width' => '980',
    		'height' => '350',
    		)); } ?>
    </div>
        <?php
      endwhile;
    }
    wp_reset_query();  // Restore global post data stomped by the_post().
    ?>

    I’m doing other query calls in the same page, but if I put the code alone, nothing happens.

    My code only works If I use this:

    `<?php $args=array(‘post_type’ => ‘any’, ‘post_status’ => ‘publish’, ‘meta_key’ => ‘Banner home’, ‘posts_per_page’ => 3, ‘category_name’=>’noticias’);
    $my_query_bannerhome = new WP_Query($args); ?>
    <?php if ($my_query_bannerhome->have_posts()) : while ($my_query_bannerhome->have_posts()) : $my_query_bannerhome->the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <?php if ( function_exists( ‘get_the_image’ ) ) { get_the_image(
    array(
    ‘custom_key’ => array( ‘Banner home’ ),
    ‘default_size’ => ”,
    ‘attachment’ => false,
    ‘link_to_post’ => true,
    ‘image_scan’ => false,
    ‘width’ => ‘980’,
    ‘height’ => ‘350’,
    )); } ?>
    </div>
    <?php endwhile; endif; ?>`

    If I remove ‘category’=>’noticias’, the query doesn’t display any post instead of ‘post_tye’=>’any’

    Thread Starter chavo

    (@chavo)

    Genial. Comprendido! (había respondido a esto creo pero no salió el post). Quizás lo borré sin darme cuenta. Me resultaba muy curioso que funcione bien y haya dejado de funcionar de golpe siendo que lo he usado en sus diferentes versiones en varios sitios y nunca tuve problemas.

    Muchas gracias!

    Thread Starter chavo

    (@chavo)

    Mmmm…lo raro es que no estoy viendo sólo el home. Te dejo la url donde estoy armando el site (el cual tiene momentáneamente la opción de no mostrarlo en los buscadores) para que intentes navegarlo. ¿Es necesario que le coloque el atributo range?.

    http://www.estrategiasitiosweb.com.ar/v1/

    Thread Starter chavo

    (@chavo)

    Hola Héctor. Mejor en español. Mi inglés no es tan bueno como quisiera.

    Te comento el problema que estoy teniendo. Inserté el siguiente tag en el footer:

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular('limit=5&stats_comments=0'); ?>

    En principio todo andaba bárbaro, pero de golpe, me dice:

    Lo lamento, no hay información aún.

    Y no levantó más info.

    saludos.

    Thread Starter chavo

    (@chavo)

    Ohhhhhhhhhh…fu**ing web hosting. I haven’t access to admin panel to see wich version of php is running the web host. But this is not the first issue I have with this kind of “cheap” web hosting. Sorry about the “broken” mark. I will fix it!. Thanks for your answer.

Viewing 15 replies - 106 through 120 (of 153 total)