Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joeyheuts

    (@joeyheuts)

    Thank you for taking the time to react to my question.

    but the above code doesnt show the profiles that i want it to show, it shows me a page that i created earlier. You can check my site here: https://sexze.nl/stadnaam/

    the posts should apear as they are in https://sexze.nl/ but i only want to let some appear (with a custom field value matching my criteria).

    Hope you understand my poorly written english text.

    Forum: Fixing WordPress
    In reply to: Custom posts
    Thread Starter joeyheuts

    (@joeyheuts)

    I already found out that the following shows me the custom posts names:

    <?php
    $args=array(
      'post_type' => 'seodating_profile',
      'post_status' => 'publish',
      'posts_per_page' => -1,
      '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(); ?>
        <p><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
        <?php
      the_content();
      endwhile;
    }
    wp_reset_query();  // Restore global post data stomped by the_post().
    ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    But now i only need to get the rest of the content too.

Viewing 2 replies - 1 through 2 (of 2 total)