Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2018-05-18 20:50:35
- ybwass
- New Member
- Registered: 2018-05-18
- Posts: 1
Please help..coding issue
Hello,
I believe my listing page code is not function correctly.
I can no longer get my fundraisers to list on my fund raisers page with picking the “Events” category. I figured out how to get my education events to list on the events page but the list in the wrong order.
Here is the code for my listings page:
<!-- txp:page:listing -->
<txp:output_form form="header"/>
<txp:if_article_list>
<h2 class="place <txp:section />"><txp:section title="1" /></h2>
<txp:article time="any" status="sticky" />
<txp:if_section name="education-listing,education-child,education-teen,education-adult,education-teacher,events">
<txp:if_section name="education-child">
<txp:article_custom section="education-listing" time="any" sortby="Posted" sortdir="desc" category="child,education-child,education-child-teen,education-child-teen-adult" />
<txp:article_custom section="events" time="future" sortby="Posted" sortdir="asc" category="child,education-child,education-child-teen,education-child-teen-adult" />
</txp:if_section>
<txp:if_section name="education-teen">
<txp:article_custom section="events" time="future" sortby="Posted" sortdir="asc" category="teen,education-child-teen,education-teen-adult,education-child-teen-adult" />
<txp:article_custom section="education-listing" time="any" sortby="Posted" sortdir="desc" category="teen,education-child-teen,education-teen-adult,education-child-teen-adult" />
</txp:if_section>
<txp:if_section name="education-adult">
<txp:article_custom section="events" time="future" sortby="Posted" sortdir="asc" category="adult,education-child-teen-adult,education-teen-adult" />
<txp:article_custom section="education-listing" time="any" sortby="Posted" sortdir="desc" category="adult,education-child-teen-adult,education-teen-adult" />
</txp:if_section>
<txp:if_section name="education-teacher">
<txp:article_custom section="events" time="future" sortby="Posted" sortdir="asc" section="education-listing" category="teacher" />
<txp:article_custom section="education-listing" time="any" sortby="Posted" sortdir="desc" section="education-listing" category="teacher" />
</txp:if_section>
<txp:if_section name="events">
<txp:article_custom section="events" time="future" sortby="Posted" sortdir="asc" category="adult,education-child-teen-adult,education-teen-adult,education-children,fundraiser" />
<txp:article_custom section="education-listing" time="any" sortby="Posted" sortdir="desc" category="adult,education-child-teen-adult,education-teen-adult,education-children" />
</txp:if_section>
<txp:else />
<txp:article time="future" sortby="Posted" sortdir="asc" />
</txp:if_section>
<txp:else />
<txp:article time="any" sortby="Posted" sortdir="asc" form="individual" limit="1" />
<txp:output_form form="other-articles"/>
</txp:if_article_list>
<txp:output_form form="footer"/>
Offline
Re: Please help..coding issue
ybwass wrote #311882:
I can no longer get my fundraisers to list on my fund raisers page with picking the “Events” category. I figured out how to get my education events to list on the events page but the list in the wrong order.
Hello, welcome to the forum. What do you mean by “no longer” — did it worked before? Then before what?
Offline
Pages: 1