Posts

Showing posts from December, 2019

Wordpress Post Vs Page

Image
What Is A WordPress Post? When WordPress was new it was principally utilized as a blogging framework. A WordPress Post was a solitary blog passage. In light of that, the structure and association of WordPress Posts bode well. At the point when a rundown of Posts is shown on your site, you'll see them showed in diving date request. Posts can likewise be sorted out with classes and labels. Classifications and labels are hierarchical bits of metadata that you make varying to integrate related Posts. Those classes and label assignments are gathered on an Archive Page. Contingent upon how your site is arrangement WordPress will consequently make at least one of the accompanying Archive Pages: Classification Archive – a document of Posts in every classification. Label Archive – a file of Posts in each tag. Date document – a file of Posts by date. Creator Archive – a document of Posts for each creator. On every one of these Archive Pages, WordPress shows a rundown ...

Create a custom post type in wordpress

Image
Create a custom post type in WordPress. First of all, you have to use the default WordPress hooks. add_action. add_action( 'init', 'my_custom_post_yblog' ); function my_custom_post_yblog(){ $labels = array(     'name'               => _x( 'yblog', 'post type general name' ),     'singular_name'      => _x( 'yblog', 'post type singular name' ),     'add_new'            => _x( 'Add New', 'yblog' ),     'add_new_item'       => __( 'Add New yblog' ),     'edit_item'          => __( 'Edit yblog' ),     'new_item'           => __( 'New yblog' ),     'all_items'          => __( 'All yblog' ),     'view_item'          => __( 'View yblog' ),     'search_it...