Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anybody! Help please!

    Help, Mark / t31os!

    Thank you very much for this nice codes, It’s a while that I was looking for it. But, I’m very new to coding! May you please explain what do you mean of // YOUR TITLE TRUNCATING CODE GOES HERE. I want the max characters of 20 in the post titles in the default Recent Posts widget, which I’m using in sidebar.
    I tried to replace “// YOUR TITLE ..” with a code! but It bounced a fatal error. what I did: from this code:
    <?php echo ‘shortened title ‘ .substr($post->post_title,0,20) ; ?>

    copied :
    echo ‘shortened title ‘ .substr($post->post_title,0,20) ;

    and pasted it in place of // YOUR TITLE TRUNCATING CODE GOES HERE.

    I know that to you it seems funny.
    Please, tell me how can I get it done? what is my truncating code? exactly where should I insert it? Thanks a lot.

    Thread Starter safeincome

    (@safeincome)

    Extra information:
    3 days ago I change the setting of my blog:
    I Tools—Setting—-Blog address
    I add www to the blog address.
    now when I want to go to wp-admin with this URL:
    http://www.mydomain/wp-admin
    when it redirect to same login page it shows:

    http://Mydomain/wp-login.php?redirect_to=http%3A%2F%2Fwww.Mydomain%2Fwp-admin%2F

    and it’s not working.

    I delete the www in redirected URL and it works.

    why this happens? I want my blog address with www, but I don’t want such problems in log in.
    should I change the WordPress address (URL) in <tools><setting> as well?(I only changed blog address not WordPress address)
    I appreciate your suggestions.

    Thread Starter safeincome

    (@safeincome)

    is there any way to resolve the problem?! insert some codex or…!

Viewing 4 replies - 1 through 4 (of 4 total)