Forum Replies Created

Viewing 15 replies - 91 through 105 (of 128 total)
  • Forum: Plugins
    In reply to: Quoting all excerpts
    Thread Starter dunkkan

    (@dunkkan)

    Ok, I can do it with the custom excerpt field in the Editor … oups hehe, well ! sorry

    Anyway if anybody knows how to do it automatically it could be great.

    Thread Starter dunkkan

    (@dunkkan)

    (The tagged posts wouldn’t belong to the main current post : just a template where to have a normal loop + some asides)

    by the way, I’m gonna look at some asides plugin ??

    Thread Starter dunkkan

    (@dunkkan)

    Thanks mfsearer !

    Thread Starter dunkkan

    (@dunkkan)

    Save the last page visited as a variable in php ?
    (sorry for the persistence).

    Thread Starter dunkkan

    (@dunkkan)

    In fact, is making the_excerpt process inversed.
    From the permalink to an excerpt, eslewhere.

    Could I ‘capture’ a postID in single.php, and use it when the visitors go elsewhere, for exemple, with a query_posts tag ?

    Could the ‘navigation between posts’ (a paginated site) give some solution to this ?

    Maybe building a ‘second’ single.php where join excerpt-of-the-last-visited-post + other things ?

    I’ll be looking at it (with my limited knowledge). If anybody have some idea, please don’t hesitate.

    Thread Starter dunkkan

    (@dunkkan)

    anybody ? I really don’t know how to build a function which can do that.

    Forum: Plugins
    In reply to: Category Management
    dunkkan

    (@dunkkan)

    Hi Lars, here there’s a plugin which can make it easier I guess. (English section in the second half of the page, unless you are german-speaker!)
    Good luck.

    dunkkan

    (@dunkkan)

    Hi, make sure you have write/load [gallery] also in your post, because only writing it in the template won’t work.

    This ‘order’ just search for the shortcode in the post while the loop starts, to put the gallery elsewhere.

    I give this answer ’cause I’m pretty able to forget it ??

    Thread Starter dunkkan

    (@dunkkan)

    I guess it would look like something like this/

    function adding_your_shortcode($content)  {
       $yourshortcode = '[contact-form]';
       SOMETHING MAGIC HERE($yourshortcode);
       return $content;
    }
    
    add_filter('the_content','adding_your_shortcode', '10');

    Maybe something similar ?
    I just don’t know which php actions can I use to insert the shortcode (the SOMETHING MAGIC section).

    Thanks if anyone can answer.

    Hello,
    You can do it with the get_posts function.

    <div id="column1">
    	<?php
    	$posts = get_posts('category=WHATEVER&numberposts=5');
    	foreach($posts as $post):
    	setup_postdata($post);
    	?>
    	<?php
    	the_content();
    	?>
    	<?php endforeach; ?>
    </div>
    <div id="column2">
    	<?php
    	$posts = get_posts('category=WHATEVER&numberposts=5&offset=5');
    	foreach($posts as $post):
    	setup_postdata($post);
    	?>
    	<?php
    	the_content();
    	?>
    	<?php endforeach; ?>
    </div>

    In ‘category’ you set the cat’s number. I believe you can use too ‘categoryname’.

    In your CSS you set the width and position of your columns.
    Don’t forget to fill, in the second column, the adequated offset for it.
    Logically you can complete the php calls with the_title(); the_author(); etc.

    Hope that helps.

    Thread Starter dunkkan

    (@dunkkan)

    Like James Brown would say…

    “Pleeeease, pleeeease, please, please…”

    Hello, I’m trying to do exactly that but, which could be an example of the use of the $attachment_id ? Just for print the thumbnail i.e. ?

    hellooooooo … sorry for the lapsus.
    Did you try some CSS to push the image above the headline ?
    You insert the image in your post normally.
    You give a class to the div where the posts will be displayed.

    Then in your CSS:
    .aboves {position:relative;bottom:2.5em}

    Hello, I worked with some CSS for that layout, to avoid setting multiple loops.
    But even then, it seems like sometimes the code doesn’t scan for the attachment in the post …

    In some posts works like a charm, but in others the attachment keeps hidden.

    Any idea ?

    Hi Cassel,
    In version 2.6, in the Media Uploader, must be an option which allows to leave the ajax mode and upload the files in the ‘old way’. That should work, because I had the same problem.

    Then, for the thumbnail size, there’s normally the three options : full, medium or thumbnail, like in 2.5.

    Anyway, you should be able to modify the ‘pirate’ full sized image in the post editor, just putting the mouse over it and selecting the little ‘image editor’, side by side of the ‘cancel image’ option.

    Hope that helps

Viewing 15 replies - 91 through 105 (of 128 total)