Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Static Page (Home) & Posts underneath #130739
    KMZ_FN
    Participant

    one slight change to the code. the code above only displayed the very last single post, this one will display the last 10.

    https://pastebin.com/cBVewrkD

    cheers!

    in reply to: Static Page (Home) & Posts underneath #130737
    KMZ_FN
    Participant

    got it working myself 🙂

    if anyone’s interested:

    – (better) get a child theme first, it’s working without… but you wont do any damage like that, so better set up a child first
    – get a copy of this code https://pastebin.com/JjkBHR42 and save it as pagewithnews.php into your child theme’s directory.
    this will furtheron act as your template to display static content AND news on your front page.
    it’s configured to display the last 10 posts, but you can of course change this.
    – create a simple page (insert some content) and set it up as your ‘home’page (setting -> reading -> set up as static page -> select this page you’ve just created)
    – go to pages to quick edit this ‘home’page and assign the above created template (pagewithnews.php to it)

    you now should see a static page with the contect you’ve inserted, and underneath the posts should be shown (in case you have some^^)

    that’s it 🙂

    in reply to: Static Page (Home) & Posts underneath #130687
    KMZ_FN
    Participant

    well, I almost got the desired result myself… the only remaining question would be:
    how does the theme gather the posts – where is the routine used for doing this?

    I have a static page now with a number of posts underneath, it just does not display the
    same way as the theme usually does, and I’d like to use the same ‘style’ it did before.

    in reply to: Breadcrumbs – Display entire path #129497
    KMZ_FN
    Participant

    worked out really good, thank you Tikaram 🙂
    I was only working with the menu settings, not with page settings within the page editor, that was my fault^^

    cheers!

    in reply to: Breadcrumbs – Display entire path #128406
    KMZ_FN
    Participant

    well… ok, almost works:

    the path is now displayed, BUT, the main categories (here: rental) from the menu wont show up in the path, because their parent is the main-page (homepage).

    I unfortunately cannot provide a link to the page as I’m building it local.
    I’ll try to get you a glance on it:

    Homepage
    —Rental
    ——Sound
    ———Accessories Sound
    ——Light
    ———Accessories Light
    ——Video
    ———Accessories Video
    ——Hardware
    —Service
    —About
    —Contact
    —Blah…..

    Rental is a main-top item within the main menu. (like contact, Service…)
    All the menu items like Sound, Video aso are below the ‘rental’ entry.
    The parent of rental just is the homepage – which unfortunately is not considered as a parent.
    So if I go select a sub-point like accessories, I only get a path displayed looking like this:

    Homepage -> Video -> Accessories Video

    The ‘Rental’-entry is missing, because there is no considered parent.
    It should look like this:

    Homepage -> Rental -> Video -> Accessories Video

    How can I define the “homepage” as a parent, which is considered for the breadcrumbs?
    As ‘Homepage’ is not a page, I cannot define it as a parent.
    Putting Rental underneath an ‘alibi sub-homepage’ which I could create, it would look like this:

    Homepage -> Homepage -> Rental -> Video -> Accessories Video

    …defo no workaround for me, so how can I solve this?
    any help much appreciated 🙂

    Cheers!

    edit: when hitting ‘submit’ my post is not showing up?!

    in reply to: Breadcrumbs – Display entire path #128395
    KMZ_FN
    Participant

    works 🙂
    thx a lot!!

Viewing 6 posts - 1 through 6 (of 6 total)