Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter Marco

    (@unl3a5h3r)

    rigth now it is like this:

    <a href="<?php $category = get_the_category();$cat = $category[0]->cat_name;if($cat == 'News'){echo "?article2pdf=1";}else{$link = "/wp-content/uploads/";$link .= get_the_ID();$link .= ".pdf";echo $link;}?>">[PDF Version]</a>

    ans instead of the get_the_ID() I’d like something like get_the_permalink() with the result die-gesetzliche-krankenversicherung (in this case)

    Thread Starter Marco

    (@unl3a5h3r)

    allright. Got a solution but had to change the logic in everything.

    Now I got a page without any sidebars. Just the static front page “Home”. This page loadsthe content of another static page via

    <?php query_posts('page_id=66');
    if (have_posts()) : ?>
    <div>
    <?php while (have_posts()) : the_post(); ?>
    <?php endwhile; ?>
    </div>
    <?php endif; ?>

    Right now I just got one page (Id=66) but i’ll get more soon. An I will get the page Id I need via $_GET[]

Viewing 2 replies - 16 through 17 (of 17 total)