Wordpress: Add Menu Page -> Custom Posts - wordpress

So I'm creating a small plugin for Wordpress that will require a custom menu page on the dashboard admin sidebar. I created the function that creates the page and menu with the icon, but realized that it will actually need to be set up like the Posts or Pages menu items where you have the option of switching out the featured image/video.
So it would have the option to see the list of created "posts" or add a new one. I've tried to find a tutorial that at least describes where to go in the codex that describes this, but I'm not finding a tutorial or a location in the Wordpress codex that describes creating something like a "post" or "pages" menu/with the needed sub menus. I would appreciate it if anyone could share a tutorial for this if they found one or the location for this in the Wordpress codex if the actually know its direct location? Thanks!

Related

WordPress: How to link post to particular page?

I'm new in WordPress and trying to do the following:
I have main menu with some options (Home, File, Edit, View...). I also want to have posts. The posts can belong to different categories that match the menu options. The only last post should be displayed on Home page (Home menu option). Other older posts should be on pages under appropriate menu options.
I've searched the internet but not found the right solution.
Can I do that with WordPress?
I don't know PHP.
I don't get your question properly. As you said you don't know PHP so it will be little difficult but you can make it by custom template or editing your index page of template.
Or if you want to show 1 post(last) at your website without any php, you can go to your Dashboard->Setting->Reading and make "Blog pages show at most" from 10 to 1. But the problem is your website will show like blog. If you are using "Twenty Twelve" let me know i will make it for you.

Blog section within wordpress

I have a site and I'd like a sub section of that site to be blog.
Details:
The site is fairly dynamic.
I have image carousels that get populated via custom-post-types utilizing featured images.
I have titles and headers being populated via custom-post-types and etc... That's all in the index file.
I want to create a pure blog (i.e. news style subsection of the site that aggregates latest blog posts on the www.domain.com/blog, has widget areas that post related content, comment sections, etc etc...) as a subfolder of the landing page.
I was thinking that I would create a new instance of wordpress and put it in a subdirectory of the domain called blog. Obviously this is not an optimal solution.
I'd appreciate any help.
No reason to do another install of wordpress. Just create a separate template and go from there.
These two links should get you started:
http://codex.wordpress.org/Stepping_Into_Templates
http://codex.wordpress.org/Template_Tags/get_posts

How to make category templates, pages and index appear in the same menu in wordpress?

I am having some problems structuring a Wordpress Website.
Basically this website will have the following pages:
Home
Portfolio
News
Contact
The home will be designed by the index.php, that is no problem. In this page I will show some of the posts that should be in the News and some that should appear in Portfolio.
The pages Portfolio and News should present a list of posts that match this category.
Contact is a normal static page.
My idea was to create a static page for portfolio and for news and to change its theme so I get a list of posts matching this category and handle it. But I found out that this does not work as I thought because pages are not meant to this. For this reason some functions (as the_content) do not work. So I found about Category Templates, which seem exactly what I want.
But now my problem is: my menu is being built automatically and I find it nice. Using the category page template would cause me to need to build it manually, which looks like (for a newbie) a bad smell, once it can be built automatically.
Is the approach with Home->index.php, news and portfolio -> category template and contact -> static page a nice approach?
How would I build the menu in a elegant way with this approach?
Thanks!
Oscar
I don't think your approach was the best, I would have used page templates to pull the different layout/type of pages and use the front-page.php to create the homepage.
But every dev has his own way, I guess.
I think you can easily solve your problem building the menu with the built-in menu builder of wordpress. You can go in Appearance > Menu if your theme is compatible with that.
Check further documentation here
hope it helps!
cheers
In wordpress you can add static page or categories or any other pages to wordpress menu. For creating menu in wordpress see this links.
creating menu

Custom page in Wordpress plugin

I am creating simple plugin, and I prepared few pages: add.php, edit.php, delete.php and list.php. I've used add_menu_page and add_submenu_page - so I understand why they are visible in admin menu. How to create page (or custom URL with parameter) without putting this into menu? I'd like to add link to edit page and delete url (code executed by plugin) on listing page - something like in posts listing page but can't find function to achieve this.
Here are two possible solutions for this questions:
How do you add a WordPress admin page without adding it to the menu?
Personally i havent tried it but it like the one where you remove the item from the menu after you set things up like normal.
There is also a great plugin called the WP Router that can help you setup totally unique urls with the callback you desire.

Wordpress News website, multiple layout, category base?

I have a theme, I am html web designer, but I can understand some php / wordpress coding also
I have a wordpress theme & I want to convert it into a news portal
Please guide me, I want to convert it into category base, should be like that
http://www.firstpost.com/ please guide me, how can I do ?
is it archive page or separate category page?
--
http://www.firstpost.com/category/world
when browsing category page, you can see there are different post layouts
without any duplicate post
please guide me
You can simply make a main menu containing links to your categories. This will load in the page you set as post-page (ie. the page that contains your posts).
Go to Appearance - Menu. Create a menu and set it as the main menu.
instead of ticking the boxes for linking to pages, create menu links like www.domain.com/category/cats and www.domain.com/category/dogs
http://codex.wordpress.org/Function_Reference/wp_nav_menu

Resources