Custom Wordpress Page (using the plugin)

I want to create a custom page that has brackets for tournaments instead of regular content. I read some Wordpress docs and found how plugins work and how I add administration pages to administer the page.

My question is: what is needed to create the page itself (and indicate it on the site)? Do I need to create a custom template on which most of the work in it, do I need the plugin to create a page or where to start?

Also, how do template pages and plugins interact? Is WP providing me a reference variable for the plugin, or do I need to download it "manually"?

thank

EDIT: I think I'll reformulate my question. Although the answers were helpful, they are not quite what I was looking for.

Basically, I need a page where I have a module / code / everything that controls everything that happens there. This means that I can’t just customize the page since when I can only fill in the text. I need a page where I can decide what happens when I go to this page, what is written, submits, etc. I'm pretty fluent in PHP, just not Wordpress :)

The second part is the administrator, where I need a page (or several) to manage some of the administration materials for the specified page.

I hope this helps with clarification.

+3
source share
4 answers

After activating the plugin, you can use it from any new page.

, , . , .

, , WordPress. WordPress, "".

+3

, , . , :

  • WP ; "" - . "" .
  • page-example.php - .
  • PHP HTML- -example.php:

<?php get_header(); ?>

<! - php- →

<?php get_footer(); ?>

div , , get_sidebar()

+5

: ** , CrunchBase WordPress Answers ( 18 ). , , , , , .

, , [. . ].

WordPress 3.0 company, , , , . , functions.php, :

register_post_type('company',
    array(
        'label'           => __('Companies'),
        'public'          => true,
        'show_ui'         => true,
        'query_var'       => 'company',
        'rewrite'         => array('slug' => 'companies'),
        'hierarchical'    => true,
        'supports'        => array(
            'title',
            'page-attributes',
            'excerpts',
            'thumbnail',
            'custom-fields',
            'editor',
            ),
        )
);

register_taxonomy('company-category', 'company', array(
    'hierarchical'    => true,
    'label'           => __('Categories'),
    'query_var'       => 'company-category',
    'rewrite'         => array('slug' => 'categories' ),
    )
);

register_taxonomy('company-status', 'company', array(
    'hierarchical'    => true,
    'label'           => __('Status'),
    'query_var'       => 'company-status',
    'rewrite'         => array('slug' => 'status' ),
    )
);

register_taxonomy('company-funding', 'company', array(
    'hierarchical'    => true,
    'label'           => __('Funding'),
    'query_var'       => 'company-funding',
    'rewrite'         => array('slug' => 'funding' ),
    )
);

, :

CrunchBase, (, , - , ?):

(, CrunchBase), , , WordPress " Page" "" (, !), shortcode , Shortcode ( , , , .)

"" , CSS:

[list-pages post_type="company"]

single.php single-company.php .

, , Gravity Forms ( , 39 .)

...

, , . , WordPress!

, .

-Mike

+3

Source: https://habr.com/ru/post/1760125/


All Articles