Forums

Creating Dynamic Pages (3 posts)

  1. jessemerlin
    Member
    Posted 2 years ago #

    I'm curious about best practices in order to create pages which have dynamic content that is generally not blog based. For example, a custom gallery page that does nothing but load images from a directory or the database.

    I figured I could do this with hooks or conditional widgets in pages.

    Are there any examples or best practices in order to do so? I haven't been able to find much online and I'm working on a wordpress site that is more non-blog than blog and therefore requires quite a few custom pages.

  2. Christian Schenk
    Member
    Posted 2 years ago #

    Well, I don't know about best practices, but I would either code a plugin that provides a shortcode or create a custom template in your theme that outputs the images or whatever.

    In case you don't want to change the layout of the page you should opt for the shortcode. In case the layout should be a little bit different here and there you should go for the new template.

  3. jessemerlin
    Member
    Posted 2 years ago #

    The shortcode was what I was looking for, I think this will work thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.