[Resolved] Adding content to blog / archives

Home Forums Support Adding content to blog / archives

  • This topic has 5 replies, 2 voices, and was last updated 4 months ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1289725
    Ben

    What is the best way to add introductory text (editable) to top of blog listing (archives). Ideally I’d like to have a page that can have the content editable at the top and then display the blog archive below (using the GP theme blog column settings). I’d also like to find a method that will allow me to do this with other post types (not just blog posts).
    Many thanks
    Ben

    #1290007
    David
    Staff
    Customer Support
    #1290091
    Ben

    Thanks, but Hooks/headers arent easy for editors to edit.

    I was more thinking of trying to add something to the archive.php template via child theme and add this somewhere:

    the_content(); // this will output the page content

    with the aim of adding the page content, prior to displaying the archive list

    is something like that possible?

    #1290465
    David
    Staff
    Customer Support

    Unfortunately its a little more complicated then adding the_content() to a custom template.

    Perhaps look at Advanced Custom Fields combined with the GP Hooks?

    #1293485
    Ben

    ok thanks, will give it a go. Currently looking at using ACP to insert text via Header Element. Many thanks

    #1293499
    David
    Staff
    Customer Support

    Awesome – just a note the Header Element will accept HTML and Shortcodes but it won’t accept PHP. The {{custom_field.name}} template tag should work with ACF fields also..

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.