How do I register for a CPT to go to a specific page? [closed]

1

Search but I have not figured out how to get a player's CPT data (which includes name, photo, and phone) to go to the players page.

In other words, I want the registration data in the (back-end, administrative panel of WordPress) to be displayed on the players page (in the front-end). How to make this bridge?

    
asked by anonymous 21.03.2016 / 19:30

1 answer

0

Check Custom Posts Types «WordPress Codex (the original in English is more complete ) where you will see for example:

$args = array( 'post_type' => 'product', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
  the_title();
  echo '<div class="entry-content">';
  the_content();
  echo '</div>';
endwhile;

You'll use this code within specific pages of your Theme by changing that product to jogador .

Resources to understand the hierarchy of a Theme:

Much of Codex has Portuguese translation. The new Official WordPress Developer Resources section does not yet.

    
23.03.2016 / 06:19