• Resolved amida2020

    (@amida2020)


    Hello! I have to create an events plugin which makes possible to create events from admin panel and import events from another application via XML. With my limited knowledge I created a wp plugin that creates a custom table and imports the XML data in that table (all data are in one db. table row). Also, I found that using for custom posts custom tables, where all post data are in one table row offers a higher performance.
    Searching for wp plugin that offers the possibility to save custom posts data in custom table I found Pods. Thanks for this nice function!!
    I created with Pods the custom posts plugin by Advanced Content Type.
    I can now create posts from back end and import XML posts in the same table.
    I can get data in front end.
    Now the question is how can I get the single post page, where I will get the post description, pictures…? I need the option like in WordPress, to click on event title or a link (read more) and get to the event page.
    Could you please write some concrete steps what should I do?

    • This topic was modified 5 years, 2 months ago by amida2020.
    • This topic was modified 5 years, 2 months ago by amida2020.
    • This topic was modified 5 years, 2 months ago by amida2020.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter amida2020

    (@amida2020)

    Any Answers?
    I created the single post page but can’t get the post data.
    Since my custom posts are based on Advanced Content Type, I can not get the permalink field. I think, I have to create my custom permalink…
    Since the imported XML file contains events with the same title for different dates, I think, the permalink should include the ID as well.
    Any advice?
    1. How to create the correct permalink?
    2. How to get from this permalink the object and fields data on single event page?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Thread Starter amida2020

    (@amida2020)

    Thank you, but as I wrote, in my case I have many events with the same title, for different days, and time.
    Since I use advanced content type there is no permalink.
    If I create it based on title, then have many the same permalinks.
    On event page I need to get somehow the object of this event in order to extract data.

    Plugin Author Jory Hogeveen

    (@keraweb)

    You always need a permalink/URL to display a single object (whether it’s a post, term, user or advanced content type). If you always use the same titles then what is your idea on the URL structure?

    Thread Starter amida2020

    (@amida2020)

    Not always, but many are the same, Theater events.
    I think, in the URL should be included the ID of event which is unique.
    But how based on such URL to get the event object on page?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Posts with Advanced Content Type’ is closed to new replies.