Add this besides title instead of content

https://pastebin.com/nL9p0ZRR

The code adds “Flag button” inside single post, under the content.
But my wordpress doesn´t have any single pages/posts. It just has a front page, search page and archive page.

I would like to add this whole function besides the title instead.

I have tested to replace

if ( is_singular( ‘post’ ) && ( $this->settings[‘content’] == ‘post’ || $this->settings[‘content’] == ‘post_and_page’ ) ) {
$this->post_type = ‘post’;
}

To

if ( is_home( ‘post’ ) && ( $this->settings[‘content’] == ‘post’ || $this->settings[‘content’] == ‘post_and_page’ ) ) {
$this->post_type = ‘post’;
}

But then when i click “Flag button” it opens all pop up windows instead of just one. https://imgur.com/a/dqWWuhD

So there is a misstake somewhere. What can it be? And how do i make this function added correctly besides the title not besides content.

Read more here:: Add this besides title instead of content

Leave a Reply

Your email address will not be published. Required fields are marked *