# $pages-\>find and give title() and text()

**URL:** <https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269>\
**Category:** Questions\
**Tags:** v2\
**Created:** [June 4, 2015, 10:36am UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269 "2015-06-04T10:36:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://forum.getkirby.com/u/erik)\
**Post date:** [June 4, 2015, 10:36am UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269/1 "2015-06-04T10:36:43Z")

</div>

Hey !

Sorry for my bad english. 😄

I try to insert the “title” and “text” from an other site on my website to the active site, but is not working 😪

```
 <?php echo $pages->find('3-praxisspektrum')->title()?>
 <?php echo $pages->find('3-praxisspektrum')->text()->kirbytext()?>

```

praxisspektrum is an visible site ! The active (open) website is not visible- maybe this is the problem ?

Have you an Idea ?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [June 4, 2015, 10:52am UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269/2 "2015-06-04T10:52:30Z")

</div>

Try it without the `3`: `$page->find('praxisspektrum')->title()` or `page('praxisspektrum')->title()`.

For that praxisspektrum should be a top-level page, otherwise do `page('parent/praxisspektrum')...`

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://forum.getkirby.com/u/erik)\
**Post date:** [June 4, 2015, 2:24pm UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269/3 "2015-06-04T14:24:46Z")

</div>

your idea was not working, sry.

\<?php echo $pages-\>nth(2)-\>url() ?\> \<?php echo $pages-\>nth(2)-\>title()-\>html()?\>

This works :):))

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [June 4, 2015, 2:37pm UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269/4 "2015-06-04T14:37:27Z")

</div>

You sure your page is actually called anything like `praxisspektrum`?  
Cause the `page()` helper should work pretty reliable: [http://getkirby.com/docs/cheatsheet/helpers/page](http://getkirby.com/docs/cheatsheet/helpers/page)

Using `nth()` shouldn’t be the solution you settle for - not that it’s not working for the moment, but just cause it’s not actually the logic of what you want to do.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:17pm UTC](https://forum.getkirby.com/t/pages-find-and-give-title-and-text/1269/5 "2025-02-06T17:17:16Z")

</div>


