• Resolved _F12

    (@_f12)


    I have battling with this problem for a while now so I thought I would get some help.

    Basically I have a set of entries, which I want to display on one page each, but which are not posts and which I do not want to display as such (i.e. I want to write my own page to display them – no metadata, no comments, etc.). What is the best solution to this?

    I could have my own page and database table (with associated plugin for data entry) working with GET variables to define which entry to show, but I think this may be working against rather than with the WP framework. Is there possibly a way to leverage the posts system to do this rather than create my own, while not impacting on the ability to have proper WP posts? One of the other issues is I am trying to use WP_QuickLatex to process the data in these entries so using my own database poses a problem there (since that plugin processes the post data). I am also considering using shortcodes in the entries as well.

    Any suggestions would be much appreciated as I feel like I am going around in circles.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You should seriously consider custom post types to organize your data. It would mean your custom data values would be stored in postmeta, but that shouldn’t be an issue. Then your templates to display the data will automatically be used, provided you use the proper naming protocol: single-{$post_type}.php and archive-{$post_type}.php

    You can then use most template tags related to posts for your custom data, instead of having to write custom functions.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom data without working against WordPress’ is closed to new replies.