How do CPT registration go to a specific page?

Asked

Viewed 38 times

1

Search but not figured out how to make a CPT player registration data (which include name, photo and phone), go to the players page.

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

1 answer

0


Check out Custom Post 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 will use this code within specific pages of your Theme by swapping that product for jogador.

Resources to understand the hierarchy of a Theme:

Much of Codex is translated into English.
The new section Official Wordpress Developer Resources not yet.

  • ps: the first place to look is the documentation, whether working with Wordpress, PHP, jQuery, Stack Overflow... if you don’t find it there, you can start searching the rest and write a question to post here. At the end of the research/testing, either you have already solved or you have an excellent question to post ;)

  • Thank you very much friend. I will follow your advice !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.