• Hello,

    I have set up the frontpage to be a static page while the blog is on a second subpage.
    I would like to redirect the first featured page to the latest blog entry.
    The first featured page should thus show a page excerpt from the latest blog entry together with a featured image from the latest blog entry. Now the question is how does one achieve this in customizr?

    One idea could be to have the first featured page point to a link with a page that is dynamicallly upadated with the latest blog entry:

    Ex. https://www.somewebpage.com/latest-blog-entry

    Thus when a new blog entry is entered the old one is archived and the new entry is shown on the above link.

    Is this possible or is there another simpler way of achiving this?

    Best regards,
    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Michael,
    you can create custom page template for Customizr child theme like I did here at https://pastebin.com/zFYFgJZT for you. It will show only lastst post excerpt, so what you need to do is to take this code and make e.g home.php file, copy it to root of your Customizr child theme folder, and then you need to create a page that will be shown on your Front page with “latest post page template” selected.
    Basically I added <?php query_posts('showposts=1'); ?> to default Customizr index.php file

    Thread Starter mln83

    (@mln83)

    Hi tomaja,

    Thank you for your input.

    I followed your instructions to the letter but the result is not exactly what I intended.

    The basic idea is to replace the text and image belonging to the first featured page container in the Customizr theme with the page excerpt and the featured image from the latest blog post. I have deduced that the relevant code is defined in __before_main_container in index.php in the Customizr theme. The featured pages code is again defined in class-content-featured_pages.php. It is however no small challange to replace the nessecary code in that php file.

    Any advice on how to procede?

    Best regards,
    Michael

    @mln83 – Yep, I didnt quite understand you first time. I agree that it would be not small challenge, but maybe some custom html would be helpfull in this case, check this thread for more info

    Theme Author presscustomizr

    (@nikeo)

    Hi @mln83, the next release of the theme (in the coming days) will allow more control on featured pages and you should be able to do that.
    Stay connected! Cheers

    Thread Starter mln83

    (@mln83)

    Hi @nikeo,

    That sounds really great.
    I like the customizr theme and look forward to more options, especialy in respect to featured pages ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dynamic featured page’ is closed to new replies.