Rearrange archive entity order

I’ve read the Best practices section and can’t figure out how to get to the code that spits out post markup. For instance, I open content.php in the integrity views and within the entry-wrap div 2 x_get_view calls. I look into the x_get_view( ‘global’, ‘_content’ ) call which should load the global _content.php template. Within this file there is the x_get_view( ‘global’, ‘_content’, ‘the-excerpt’ ) call for non-singular output. Nothing in the best practices references the third argument and the first and second arguments just point me back to the same file.

What I need to do is rearrange the elements within the post and wrap span tags around the day in the post date. I’ve been going in circles trying to figure this out. I think I want to implement an archive.php template but don’t know where to find the code which actually writes the html markup. What am I missing?

Hey Bob,

Thanks for writing in. The content.php file is the correct starting point. Go back to it again and check out the other x_get_view calls in there. There are 2 other aside from x_get_view( 'global', '_content' );. Explore x_get_view( 'integrity', '_content', 'post-header' ); and x_get_view( 'integrity', '_content', 'post-footer' );. Those will lead you to the stack’s functions. For your case, it’s pro/framework/functions/frontend/integrity.php. You will find the HTML markup in the functions. In case you don’t know how to override, copy the function to your child theme’s functions.php.

Hope that helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.