• stephanie_2

    (@stephanie_2)


    hi,
    i adjusted a static page as start page and now i want an other menu button at the end leading to a blog (always the latest post).
    the following header code i try to edit:

    <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
                                    <li><a href="<?php echo get_option('https://mysite.com/?p=338'); ?>/">blog</a></li>

    no matter what i write in this get_option, it never opens this site but always the standard start page

    would be nice to get any help..
    s.

Viewing 8 replies - 1 through 8 (of 8 total)
  • henkholland

    (@henkholland)

    Did you create an empty page (not a post) with the title “Blog” and select that as the page for your posts in the Dashboard/Seting/Reading ?

    wp_list_pages would then show that page “Blog” allready, without the extra call for p=338

    Thread Starter stephanie_2

    (@stephanie_2)

    thank you!:) ..no “blog” is only my button
    wp_list_pages is what i was looking for, just to call always the last post..
    well, it doesn’t work yet,…?
    i now put this line in the header:
    <li><a href="<?php echo get_option('wp_list_pages'); ?>/">blog</a></li>

    but again the start page shows up (the one i put under “settings/reading” as static startpage”):(

    henkholland

    (@henkholland)

    Hi,

    You have to do this: “Did you create an empty page (not a post) with the title “Blog” and select that as the page for your posts in the Dashboard/Seting/Reading” before any menu link to “blog” will show a page with the latest posts on it.

    Do you have a link to your site?

    Thread Starter stephanie_2

    (@stephanie_2)

    thats very nice, thank you!:)
    i just created an “blog” page, as you sayd, …hm, i hope we understand us right, because i wont have another “page”, but a “post”…?
    here is the site: https://responsetest.biz/
    i could give you the loggs if you give me an email
    thank you so much!

    Thread Starter stephanie_2

    (@stephanie_2)

    sorry that it took me that long, you sayd it in your first answer. really easy and it works:)
    thank you very much!:)

    Thread Starter stephanie_2

    (@stephanie_2)

    one more question please; is there any way to skip the category click and go directly to – in my case “?cat=4”, because i’m planning on working only with this one…?

    Thread Starter stephanie_2

    (@stephanie_2)

    sorry for bothering again, i thought it works, but there’s something strange. when i open my post page it looks ok, as here:

    but when i click on “latest” the text content disappears…?
    do you have an idea what i made wrong? would be very nice..

    henkholland

    (@henkholland)

    For some reason the second post on the blog page gets a “display none”.
    What is the number of posts to show under Dashboard/Settings/Reading?
    Or does your theme have an options panel with this setting?

    Also this image is missing:
    wp-content/themes/premiumnewsBLIX/images/no-img-thumb.jpg

    I’ll skip the cat-4 question for the moment.

    Also you need to get rid of several errors:
    https://www.xhtml-css.com/

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘what is the permalink of latest post and how to go to it by fixed command in hea’ is closed to new replies.