Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

link in content template not working

$
0
0

hi. I have created a simple view with a simple content template and I cannot get a link that I created in the content template to work. I have gone through the tutorials and I have duplicated the code from another site that works perfectly but it still doesn't work for me. I've changed the double quotes to single quotes in the href but that doesn't matter. I set the view up with a table-based grid that I changed to column classes using divs and that part works fine. (of course I tried it with the table code first but that also failed).

My CPT has one custom field: it's a pdf file that I upload that I want to show when the title is clicked.

My CPT title includes commas… i removed the commas in one post but the link still does not work.

Here's the code so you can coach me! Thanks.

view:

[wpv-layout-start]
[wpv-items-found]
<!– wpv-loop-start –>
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
<div class="patent group">
<div class="one-fourth first">[wpv-post-body view_template="patent-detail"]
</div>
[wpv-item index=other]
<div class="one-fourth">[wpv-post-body view_template="patent-detail"]
</div>
[wpv-item index=4]
<div class="one-fourth">[wpv-post-body view_template="patent-detail"]
</div>
[wpv-item index=pad]
[wpv-item index=pad-last]
</div>
</wpv-loop>
<!– wpv-loop-end –>
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]<strong>No items found</strong>[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

content template:

<a href="[types field="patent-pdf-file" link="true" title="view the Patent"][/types]" target="_blank">[wpv-post-title]</a>


Viewing all articles
Browse latest Browse all 20145

Trending Articles