<p><code>entry.featuredProjectLink</code> is not an element or an array of elements, it is an object of type <code>MatrixQuery</code> in order to fetch elements you have to use the <code>.one()</code> or <code>.all()</code> function</p>

<pre><code>&lt;a href="{{ entry.featuredProjectLink.one().getUrl() }}"&gt;
</code></pre>

<p><a href="https://docs.craftcms.com/v3/element-queries.html" rel="noreferrer">Element Queries</a></p>

<p><a href="https://docs.craftcms.com/v3/relations.html#the-relatedto-parameter" rel="noreferrer">Relations</a> -> the "Going Through Matrix" part is the thing you want</p>

CC BY-SA 4.0
2018-05-22T18:31:25.737Z
Thank you very much for the reply. No link is being rendered however. Double checked, made sure the Entries field was completed, and yes, many times in the actual entry. Bizarre.
moondawg
CC BY-SA 4.0
2018-05-22T18:32:42.940Z
is your `featuredProjectLink` a field of type Matrix? if so you won't receive a url because matrix blocks don't have an URL. You need to either select a field of type `Categories, Entries, Assets` or a field inside your matrix
Robin Schambach
CC BY-SA 4.0
2018-05-22T19:09:27.660Z
It is and I am now sorted, thank you very much. Cleared the heavy caching I had set up.
moondawg
CC BY-SA 4.0
2018-05-22T18:09:58.350Z
2018-05-22T18:09:58.350Z
Robin Schambach
<p>Just migrating a site from 2 to 3 and stuck on this little call, cannot find anything in the docs at all.</p>

<p>Matrix field, Entries.</p>

<pre><code>&lt;a href="{{ entry.featuredProjectLink.getUrl() }}"&gt;
</code></pre>

<p>Cannot for the life of me find the equivalent/new way in the docs. </p>

<p>TIA</p>

<entries><craft3>
Craft CMS 3 - Entries field, getURL
# Craft CMS 3 - Entries field, getURL

(Asked by: username_0 on 2018-05-22)

Just migrating a site from 2 to 3 and stuck on this little call, cannot find anything in the docs at all.
Matrix field, Entries.


Cannot for the life of me find the equivalent/new way in the docs. 
TIA

**Tags:** entries, craft3

---

## 1 answers

### Answer by username_1 on 2018-05-22. Score: 6 | Accepted answer

entry.featuredProjectLink is not an element or an array of elements, it is an object of type MatrixQuery in order to fetch elements you have to use the .one() or .all() function


Element Queries
Relations -> the "Going Through Matrix" part is the thing you want

> **Comments:**
> **username_0**: Thank you very much for the reply. No link is being rendered however. Double checked, made sure the Entries field was completed, and yes, many times in the actual entry. Bizarre.  
> **username_1**: is your `featuredProjectLink` a field of type Matrix? if so you won't receive a url because matrix blocks don't have an URL. You need to either select a field of type `Categories, Entries, Assets` or a field inside your matrix  
> **username_0**: It is and I am now sorted, thank you very much. Cleared the heavy caching I had set up.  

---

