Custom page type but not template !
-
Hi,
fisrt thanks for your time !
I’m currently coding a plugin which need some custom page.
Let me explain what I mean.
My plugin allow you to manage item ( gmap location ). Each item have several property that I store in a db. But I also want that they have a “page” with text, pictures, … and a nice URL !
So I write something to automatically create a post. But a post have some problems.First, it appear one my “news” page. I don’t want that because, it is not a news, and if I had hundreds of items, people who read my rss feed are going to miss real news.
Second it has a date, so my archive are going to be wrong and full of irrelvant post.
Third, my news have link beween them, so a item can link with a real news. UGLY !A page is also not what I want because it will appear in my menu ! And if I have hundreds of item, my menu is going to be a real mess !
So I need to change the default behavior of post to don’t diplay them first, but to display them in the sitemap ( xml or page ), something like a third item_type !
I don’t know if I’m very clear, don’t hesitate to ask me more question !
- The topic ‘Custom page type but not template !’ is closed to new replies.