Search found 3 matches

by myrdin
Fri Sep 06, 2019 10:23 pm
Forum: Themes
Topic: Mediumish theme adaptation : list pages from category
Replies: 5
Views: 3516

Re: Mediumish theme adaptation : list pages from category

If some of you look for the answer I was able to do what I expected with this lines of code : <?php $categoryKey = 'structure'; $category = getCategory($categoryKey); $featured = array_slice($category->pages(), 0, 3); $content = array_slice($content, 1); ?> <?php foreach ($featured as $pageKey): ?> ...
by myrdin
Fri Sep 06, 2019 2:36 pm
Forum: Themes
Topic: Mediumish theme adaptation : list pages from category
Replies: 5
Views: 3516

Re: Mediumish theme adaptation : list pages from category

Hello and thank you for your answer. I have tried with <?php if ($category->key() == 'structure'): ?> . Like this <?php if ($WHERE_AM_I == 'home'): ?> <!-- Begin Featured ================================================== --> <section class="featured-posts"> <div class="section-title&...
by myrdin
Thu Sep 05, 2019 5:49 pm
Forum: Themes
Topic: Mediumish theme adaptation : list pages from category
Replies: 5
Views: 3516

Mediumish theme adaptation : list pages from category

Hello ! I am very new to bludit and php, I am working on a version of the mediumish theme (https://github.com/bludit-themes/mediumish) and in home.php I would like to display only pages from one category. Currently it displays the content of the site. I think I should do something in this part of th...