Our Rasuwa – Voice Of Rasuwa

Explore Important Destinations

Article-Guide

📚

Our Rasuwa Article

पूर्ण प्रयोगकर्ता गाइड – प्लगिन संरचना, HTML Tags र Shortcuts

v1.0.4 लेख रचना Custom Post Type HTML Guide

🏗️ प्लगिन संरचना र परिचय

🚀 परिचय

Our Rasuwa Article प्लगइनले लेख रचनाहरू सिर्जना, सम्पादन र व्यवस्थापन गर्न सहयोग गर्छ। यसले Custom Post Type, प्रकारहरू (Types), ट्यागहरू (Tags), हाइलाइट, र Topic-based संरचना प्रदान गर्छ।

📁 फाइल संरचना

ourrasuwa-article/
├── ourrasuwa-article.php # मुख्य प्लगइन फाइल
├── admin.js # Admin JavaScript
├── admin.css # Admin CSS
├── includes/
├── class-post-type.php # CPT & Taxonomies
├── class-admin-menu.php # Admin UI & Forms
├── class-admin-bar.php # Admin Bar
├── class-sidebar.php # Sidebar & Widgets
└── class-widget.php # Main Widget
└── templates/
├── archive-article.php # Archive
├── single-article.php # Single
├── author-article.php # Author
├── taxonomy-article_type.php # Type
└── taxonomy-article_tag.php # Tag

🧩 मुख्य कम्पोनेन्टहरू

📦 class-post-type.php

काम: Custom Post Type र Taxonomies दर्ता
Post Type: article
Taxonomies: article_type, article_tag

📋 class-admin-menu.php

काम: Admin मेनु र फर्म UI
Features: २ ट्याब, Topic Management, Highlight

📊 class-sidebar.php

काम: Sidebar र Widgets दर्ता
Widgets: Recent, Types, Tags

🔧 class-widget.php

काम: मुख्य Article Widget
Features: Types/Tags/Authors फिल्टर, Grid/List

🔗 URL संरचना

📄 Articles: /articles/
📄 Single: /articles/slug/
📄 Type: /article-type/slug/
📄 Tag: /article-tag/slug/
📄 Author: /author/username/
📄 Admin Create: /wp-admin/admin.php?page=ora-create-article
📄 Admin Edit: /wp-admin/admin.php?page=ora-edit-article&post_id=123

🗄️ Database Schema (Meta Fields)

post_id | meta_key | meta_value
├── _ora_is_highlight → 1 / ”
├── _ora_highlight_title → “Featured Article”
├── _ora_highlight_desc → “<p>Description…</p>”
└── _ora_highlight_image_id → 456
post_id | meta_key | meta_value
└── _thumbnail_id → 789 (Featured Image)

🎨 Template System

single-article.php

एकल लेख पृष्ठ (Sidebar सहित)

archive-article.php

लेख अभिलेख (Type-wise Grid)

author-article.php

लेखक अभिलेख (Profile + Articles)

taxonomy-article_type.php

प्रकार अनुसार लेख सूची

taxonomy-article_tag.php

ट्याग अनुसार लेख सूची

💡 Tip: यी सबै HTML tags तपाईंको लेखको सामग्रीTopic मा प्रयोग गर्न सक्नुहुन्छ

Our Rasuwa Article Plugin v1.0.4 | Developed by Prem Prasad Paudel