0
votes
0answers
27 views

how to code if the page doesn't exist execute and display this content?

I am trying to develop a wordpress theme, I having hard time on how to code on how to support on this: if I don't have any page created yet, there is a substitute title and content displayed. Is ...
1
vote
2answers
279 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...