• Hello,
    How can I create a category in a Page I have created?
    There seems to be no option for that.

    I can also not find the option to Write new posts for the Pages I have made. Where to find that.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter umm

    (@umm)

    Hi Moshu.
    I have inserted the MORE tag into the post I have made.
    On the main page it works fine.

    Exactlt the same script for the “Page” does not work. Here the ‘more…’ is not inserted.

    Now I have to find where the functions are defined.
    Maybe there is a routine which checks where the post is displayed and adds the “more…” only on the mainpage.
    EDITED…I have just tested it in the Categories, also here “the_content(‘more…’);” works fine. It just doesnt work in the “Pages”

    Well, I think its a bug.

    Now I have a look at the category templates.
    Actually I dont want to display ANY posts on the mainpage.
    I want to use the mainpage for other informations and from there People can select a “Page” and come to the blog for the respective ‘category’.

    you can see the blog here:
    https://www.umm-pur.com/wordpress/

    Thread Starter umm

    (@umm)

    I just found that is_home() works fine, but if I want to check if I am on a page, then “is_page()” does not work at all.

    I tried if (is_page()){}…if (is_page(‘anumber’)){}…if (is_page(‘theblogtitle’)){}
    nothing works.

    Guess another bug?

    I don’t know why it would be a bug…
    Think about the logic: <more> is displayed when several posts are shown, be it on the index, or a category or a monthly archive. It is never displayed when seeing a single post.
    Pages on the other hand are never shown “listed” like the posts in an archive view. I’d say Pages are always seen as a “single”. So, why should the <more> be displayed?

    Thread Starter umm

    (@umm)

    Why the more should be displayed???
    because I have put in:
    PHP…the_content(‘more…’);….
    seems that the_content is accepted and carried out, but not the ‘more…’ in the brackets.

    usage of ‘the_content’:
    the_content(‘more_link_text’, strip_teaser, ‘more_file’);

    Why would it work in the mainpage, in the category but not on a page?
    Any explanation?

    The function ‘the_content’ has been declared as expected but it is not carried out as expected.

    I just explained it above.

    Thread Starter umm

    (@umm)

    Interesting.
    Why should a Page be considered similar to a single Post?

    The ‘the_content’ must then somewhere check out: is it a single entry or not.
    But that is not contained in the script.

    Even more strange seems to me this script which I found in the original of the POST template of the single entries:

    the_content(‘<p class=”serif”>Read the rest of this entry »’

    That would not make sense at all if single entries should NEVER show the more… link.
    Why that unnecessary complication with: ‘<p class=”serif”>Read the rest of this entry »’ ???

    1. Believe me, a Page is treated as a “single” post – because it is. It just has a flag in DB saying “static”.
    And because you cannot have multiple Pages displayed on one webpage… the mmore will not work.
    2. The more NEVER works in single post view.
    3. Ah, you talking about the default K. theme? <cough> I wouldn’t bother to “study” it. As I’ll not bother to answer any question related to it.

    Thread Starter umm

    (@umm)

    Oh, OK,
    there is that static flag….
    good to know….
    That can surely be overcome ??

    The issue isn’t the flag. The point is you see only one Page at a time = single view. And in single view the whole content is displayed (I am saying it the 3rd time, LOL), and never the <more> tag with the text before it.
    If you change that flag – it will become a post.

    Thread Starter umm

    (@umm)

    I wasnt thinking about changing the flag but rather thinking about changing the script for the function.

    Who got anyway the idea to make Pages as posts?
    For Pages I would have created an entirely new table.
    Pages should not be posts.
    Well, for now they are.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Categories, how?’ is closed to new replies.