• Lisa

    (@lisavissichelli)


    I created a blog post. http://www.sachsinsights.com/watch-out-banks-the-democratizing-power-of-fintech-in-apac/ The title and link should go to “Watch out Banks: The Democratizing Power of FinTech” and should link to the article. On wordpress in editing mode it still shows this with that same title. You can still see the thumbnail and orginal title in the side bar of the “our thoughts” post page of the website.

    However, when I go to the published post the title says the name of the author and the link goes to his linkedin. How can I fix this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Lisa,

    Sorry you’re having trouble! Can you please clarify a few things for me? I’m not quite sure what you mean.

    1) What do you mean by “Title”? What title? What link? The link above the image that says “Watch Out Banks”?

    2) What was your method? How did you do what you did so far in the editor?

    Also, if you’re referring to post title, what does your permalink in the editor say?

    Thread Starter Lisa

    (@lisavissichelli)

    Hi Mike,

    1. The title in the post or the first box to type text in below Edit/Add New post. This is where the title for our posts are typed. I am not sure if this is more template related or not but whenever I type the title text in this section it is identified as a title. When I add a title for a new post a permalink is generated with that same title text in the link . Does that make sense? I wish I could attach a photo but I am unable to do so.

    2. Normally with blog posts I handle the title the same way as above. In draft mode and preview mode, the text I put in the “title” section will come up. When I publish the post that title and link stay in the section where that post says “Geoffrey Parson” in text. In this case when I published the post the original title and link where in place as usual. But this time after it published it changed to the name “Geoffrey Parson” and his linked link.

    3. the permalink in editor is the same link as the post location. Same as the title. which is what makes it so strange. Because in published mode I have no idea how this other name came up or the link because in editor its not there at all.

    Thanks, hope this helps.

    Hey Lisa,

    Thanks for clarifying! 🙂

    You’re certainly right, that is bizarre. But I just did a little looking into your issue and it certainly does look like it’s a theme-related issue.

    Normally, according to the Codex, it will be complicated and you will need to edit header.php file to do something like change the post title link.

    To use an external link in a single post, it means you will need to do the following in functions.php

    function print_post_title() {
    02
    global $post;
    03
    $thePostID = $post->ID;
    04
    $post_id = get_post($thePostID);
    05
    $title = $post_id->post_title;
    06
    $perm = get_permalink($post_id);
    07
    $post_keys = array(); $post_val = array();
    08
    $post_keys = get_post_custom_keys($thePostID);
    09
    
    10
    if (!empty($post_keys)) {
    11
    foreach ($post_keys as $pkey) {
    12
    if ($pkey=='url1' || $pkey=='title_url' || $pkey=='url_title') {
    13
    $post_val = get_post_custom_values($pkey);
    14
    }
    15
    }
    16
    if (empty($post_val)) {
    17
    $link = $perm;
    18
    } else {
    19
    $link = $post_val[0];
    20
    }
    21
    } else {
    22
    $link = $perm;
    23
    }
    24
    echo '<h2><a href="'.$link.'" rel="bookmark" title="'.$title.'">'.$title.'</a></h2>';
    25
    }

    So it looks like the theme would have to have done that, if you’re sure the Permalink displays fine. What theme are you using? Have you tried contacting the developer of the theme to report the issue?

    In any case, I’ll do some more digging to see if I can find something new, but so far I think it’s a theme issue.

    If you’d like to attach images to express what you’re trying to say, you can upload them here on this link and post the link of that image here, if you’re trying to explain something.

    http://postimage.org/

    Let me know what you find and I’ll do the same for you if I find out anything more. But theme issue, it seems.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post title not working’ is closed to new replies.