Use named anchor in link of read more button

The l() function in Drupal 6 uses an $options array where you can pass a fragment.

'fragment' - A fragment identifier (named anchor) to append to the link. Do not include the '#' character.

To split the named anchor from your original URL you can use:


The code, including an if statement to check if the URL has a named anchor part,would become:

// add slide_read_more variable
if (isset($result->node_data_field_pager_item_text_field_url_value)) {
  if (stristr($result->node_data_field_pager_item_text_field_url_value,'#')) {
    $split_url = explode('#',$result->node_data_field_pager_item_text_field_url_value);
    $slider_items[$key1]['slide_read_more'] =  l('Read more...', $split_url[0], array('fragment' => $split_url[1],));
  else {
    $slider_items[$key1]['slide_read_more'] =  l('Read more...', $result->node_data_field_pager_item_text_field_url_value);

Also have a look at the related how to: How to link Read more... button to another page instead of the node


janice owens

As soon as as i turned out to be onto your blog while wearing individual treatment readily just a bit of little bit submits. Good way of in the future too, I'm going to be book-marking at this moment contain units perform rises best together. 1xbet


I am interested in types write-up. It really is good for uncover individuals explain in words about the heart along with knowing in this substantial style is generally merely found. Meghan Trainor Weight Loss


Soon the page may perhaps irrefutably finally end up mythical in the middle every last posting lots of individuals, by reason of rigorous article content together with critical reviews together with recommendations. Buy Genf20 Plus at GNC, Amazon and Walmart

Pretty nice post. I just

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! Anavar V/S Winstrol

If you tired from endless

If you tired from endless writing work click the link and enjoy. Here is the biggest writing resource around the world. Authors who work here are really professional ones. They can write correctly on any theme you need. Just give them your instructions and everything will be ready on time.

The theme you have set for

The theme you have set for your college paper writers page is very unique. The content you put in the article to make it unique also very identical. I think nobody has done this before just you did it. you did so well in this article you have the spark of writing and it can be improved more with the passage of time.