Views is a WordPress plugin that lets you easily customize the standard WordPress listing pages using WordPress archives. You can redesign any WordPress archive, including custom post archives, taxonomy archives, author archives and search results.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 12 topics - 1,336 through 1,347 (of 1,347 total)
This customer was experiencing duplicate posts in their archive view.
Solution:
For this customer's specific case he had some extra elements outside of the wpv-loop tag which was causing duplication of the first post.
All he had to do was remove this extra code.
If you are experiencing a similar issue ensure that only the code required for displaying your content is present and that it is wrapped within the tags
Problem:
If I use the Post Excerpt on a Single Post's content template or directly in the Post Body, and click on the "Read More" link, it simply refreshes the page and does not show the Post content.
Solution:
It's expected.
The Excerpt will usually be used on a list of posts, and then, lead to the post, where you read more.
So, if you create a Archive, or a Posts Loop, and place the Excerpt it will direct you to the Post itself
But if you apply a Excerpt this way to the Post itself it will simply redirect to what WordPress assumes correctly to be the post.
So, if you want Custom Links to something else where you then show the whole post (which usually IS the post) you would need to customize the Read More attribute of that ShortCode.
Problem:
On a post archive or a view that lists posts of custom post type, such that:
-Posts Can (but do not have to be) children of the other post type.
-Posts with parents should have a link to the parent, posts without parents should not have such link.
The issue: if no parent is assigned, a random link to Parent CPT is displayed.
Solution:
Use wpv-if to evaluate if the CPT has a parent (Check the documentation).
If it returns true, the link will be displayed, on false, it won't.
Example:
-Problem:
--I need to check if each post int the loop has a parent post of type "Teams".Teams custom post slug is "teams"
-Solution:
--Use the "wpv-if" to check if the post has parent(s)
--Use the "_wpcf_belongs_{parent-slug}_id" to get the teams that the post belongs to them and assign it to a variable in the same condition like this (teams="_wpcf_belongs_teams_id").
--Check if the list of teams is empty using the "empty" function like this "empty($teams)".