Jump to content

Taffy1957

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Taffy1957's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Guys (& Ladies of course) I'm having a problem trying to add post category to the H1 title, I have managed to butcher my theme so that the single post now removes the H1 from the title in the header & instead adds it to the post title. But what I'd like to do now is keep the H1 blog title on all pages including home page, but I'd like to ammend the title with the addition of the post category, as follows; currently shows "Top Rated Gadgets" on all pages. would like it to show "Top Rated (category name)" when viewing a single post. So if the category of the post was Asus Laptops it would show "Top Rated Asus Laptops" instead of the usual "Top Rated Gadgets" The closest I have got to it so far is with <?php the_category(', '); ?> but this returns a hyperlink ! Is there any method I can use that will simply return the category name as plain text..? Any help would be much appreciated Thanks
  2. Yes thanks so much Ollifi, that worked perfectly !
  3. Hi WS, No that code is wrapping the text (Read More On + Article Title) to form a hyperlink and what I want to try to do is move "Read More On" so that it gets printed as just plain text prior to the hyperlinked article title text. So I need to change from this - Read More On Asus Laptops To This - Read More On Asus Laptops I can manage it on here easy enough but I just can't seem to get that php code altered correctly so it will work..?
  4. Hi Guys, I'm sure this is simple for someone clued up on php coding, but no matter what I try, I cannot get it to work ! I have the following php code in my theme functions.php code sheet; echo " <a href='"; the_permalink(); echo "'>"."...Read More On "; the_title_shorten(45,'...'); echo "</a>"; This code creates a link to the full article from an excerpt on the home page, but the problem is, it is including the words "Read More On" in the hyperlink, which I feel is not good from a SEO point of view ! I would be very grateful if someone could show me how to rewrite this piece of code so that the "Read More On" would be printed as plain text & not be included in the hyperlink. Thanks
  5. Ahm well that sounds great, but my knowledge of php is next to useless, so could you explain in a little more detail please..? Thanks Steve
  6. Hi Guys, My 2nd issue with my new blog is that the code used to limit the amount of content displayed from each post, is on occasion truncating the closing html tags along with the excess text! Very often this will result in any following posts being entirely italic or bold, which as you can imagine looks ridiculous. The Code that limits the content: # Limit Post function the_content_limit($max_char, $more_link_text = '', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $content = strip_tags($content, '<h1>,<h2>,<h3>,<strong>,<em>, '); if (strlen($_GET['p']) > 0) { I'd be very grateful if someone could help me out with this. Thanks Steve
  7. Hi Guys, I'm using a plugin on my new Wordpress site, to notify Twitter, Facebook etc of new posts on my blog. This is being done through a service called Ping.FM, but unfortunately although I have access to 2 accounts with Ping.FM, the plugin only appears to have the option to enter one email address, which is what is used to notify Ping.FM of the updates. I am wondering if it would be possible & if so how difficult it would be to alter the code to allow the entry of more than just the one email address & then for it to notify each one in turn..? I have attached the full code sheet for this plugin as it was too large to post on this page. If anyone can offer some assistance with this I would be very grateful. Thanks Steve [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.