Page Title Dependant On Input?

Your best bet may be to use existing WordPress filters to modify your page title. For your needs, the the_title() filter would probably be your best best. Here’s a link to a pretty good tutorial on using it.

Get youtube link title in post title

Use the following code into your functions.php file. function change_title_yt( $post_id ) { $current_title = $_POST[‘post_title’]; $doc = new DOMDocument(); $doc->preserveWhiteSpace = FALSE; $doc->loadHTMLFile($current_title); $title_div = $doc->getElementById(‘eow-title’); $title = $title_div->nodeValue; $my_args = array( ‘ID’ => $post_id, ‘post_title’ => $title ); if ( ! wp_is_post_revision( $post_id ) ){ // unhook this function so it doesn’t loop … Read more

How to Add or Change Post Title

The first thing you want to do will be find the post you want to modify. To find the post named “beddu” which post_type is post, you can excute this query: SELECT * FROM wp_posts WHERE post_type=”post” AND post_title=”beddu”; After you test and find the condition is correct. Move to update part. UPDATE wp_posts SET … Read more

Please I want to prefix my WP posts title according to each category

You have already mentioned the function wp_title(). Right before outputting the title, it passes its value through the filter wp_title, which can be used here to prepend with additional information. add_filter(‘wp_title’, ‘WPSE_20181106_prepend_title’, 10, 3); function WPSE_20181106_prepend_title($title, $sep, $seplocation) { // not a single post if (!is_singular(‘post’)) { return $title; } // IDs of categories that … Read more

Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”

You can do this via the available translation filters: add_filter( ‘gettext_with_context’, ‘gowp_replace_learndash_label’, 10, 4 ); function gowp_replace_learndash_label( $translation, $text, $context, $domain ) { if ( ( ‘LearnDash %s Settings’ == $text ) && ( ‘placeholder: Quiz’ == $context ) && ( ‘learndash’ == $domain ) ) { $translation = str_replace( ‘LearnDash ‘, ”, $translation ); … Read more