andreaamado
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How insert an image at the start of every post?if you don’t use the timthumb, change this line:
<div class="alignleft"><img src="<?php bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo $att; ?>&w=300&zc=1" class="imgthumb" /></div>
for:
<div class="alignleft"><img src="<?php echo $att; ?>" class="imgthumb" /></div>
Forum: Fixing WordPress
In reply to: How insert an image at the start of every post?try this:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); $att = ''; if ($attachments) { foreach ($attachments as $attachment) { $att = $attachment->guid; } } ?> <?php if ($att) : ?> <div class="alignleft"><img src="<?php bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo $att; ?>&w=300&zc=1" class="imgthumb" /></div> <?php endif; ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <div id="tagsDiv"><?php the_tags('Tags: ', ', ', ''); ?> </div> <?php endwhile; endif; ?>
Forum: Fixing WordPress
In reply to: How insert an image at the start of every post?on single.php ?
Forum: Fixing WordPress
In reply to: Redirecting old domain permalinks to new onestry this plugin Simple 301 Redirects
Forum: Fixing WordPress
In reply to: My query has a specific post_type and tagsnobody answer me here ??
Forum: Fixing WordPress
In reply to: Tag cloud of multiple taxonomieshelp???
Forum: Fixing WordPress
In reply to: Tag cloud of multiple taxonomiesThe code:
Forum: Fixing WordPress
In reply to: wp_insert_user for multisiteok, ok, ok i found ??
https://codex.www.ads-software.com/WPMU_Functions/add_user_to_blogForum: Fixing WordPress
In reply to: Create custom Permalink with custom post type and custom taxonomyworks for me. You can use this plugin to make your life easier:
https://www.ads-software.com/extend/plugins/gd-taxonomies-tools/and put this functions in you function.php to make permalink works:
add_filter('post_type_link', 'filter1', 1, 3); function filter1( $post_link, $id = 0, $leavename = false ) { if ( strpos('%citys%', $post_link) > 0 ) return $post_link; $post = get_post($id); if ( !is_object($post) || $post->post_type != 'test' ) return $post_link; $terms = wp_get_object_terms($post->ID, 'cidades'); if ( !$terms ) return str_replace('test/%citys%/', '', $post_link); return str_replace('%citys%', $terms[0]->slug, $post_link); }
[Please post code snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: Create custom Permalink with custom post type and custom taxonomyI’m trying to run. I think that is what we need.
Forum: Fixing WordPress
In reply to: Create custom Permalink with custom post type and custom taxonomyForum: Fixing WordPress
In reply to: Create custom Permalink with custom post type and custom taxonomy??
if i find, i tell you.Forum: Fixing WordPress
In reply to: Create custom Permalink with custom post type and custom taxonomyhi, serdominik!
did you get? i’m with the same problem ??Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Role Management / Rights ProblemIm having this problem too.