0
votes
1answer
62 views

Checking for existence of a page by title?

I'm currently working on a plugin, and I essentially want to check if a certain page has been created. Essentially, I want to do something like this: if (file_exists($file)) { $exists = ...
3
votes
3answers
2k views

Change the_title() of a page dynamically

I'm developing a plugin that doesn't use a custom post type, but separate database tables. It's a plugin that displays a list of courses with links that lead to the different course detail pages, ...
0
votes
2answers
39 views

How do i remove the title from a specific page

Hi need to remove the title of a specific page, this one. I could do add_filter( 'the_title', ai1ec_remove_title ); function ai1ec_remove_title( $title ) { if( 'Calendar' === $title ) { ...
2
votes
4answers
2k views

How to change wordpress post title?

How to change just wordpress post title but not menu items. add_filter('the_title', 'wordpress_title'); function wordpress_title(){ return 'New title'; }
0
votes
1answer
403 views

Why doesn't my simple the_title filter get applied?

I have added the code below to an active plugin, but it's having no effect on my posts. add_filter( ‘the_title’, ‘myfunction’); function myfunction($title) { return "Why won't this work?" . ...