Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    What is the template file you’re using for these, and are you able to share the contents of that template file?

    Thread Starter Chris

    (@chrisaquino)

    I believe the condition should be added in the file below. (/framework/inc/titlebar.php)

    https://gist.github.com/chrisaquino/7924e23e5d9bfdd464ca

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Oofta, that’s a mess of a template file. My best guess is that somehow the variable is being overwritten or replaced. Our plugin leaves the frontend/display alone and just focuses on the registration of the post types/taxonomies, so I’m not sure what I’d be able to do other than point to possible solutions/locations.

    Thread Starter Chris

    (@chrisaquino)

    Ah, gotcha. Yeah, if you can point to some of those solutions or locations that’d be great. I tried adding the line below in but haven’t had any luck…

    elseif( get_post_type() == ‘press-releases’ ) { $title = ‘Press Releases’; }

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Knowing me, I’d start at the top and echo the title variable in a random places and observe the point where it stops being what it’s expected to be. That’s just me though, and a bit haphazard. Either that, or put in wp_die() in places until I have narrowed down where the template starts to affect the output and work from there ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Most recent post title is archives page title’ is closed to new replies.