• Resolved morganfardo

    (@morganfardo)


    Hi!

    i would like to have different post meta according to post category,.

    for exemple:

    If post is child of category X show {
    only category name
    } else {
    author name, post date, category and so on. }

    i would like to edit this meta in index, single and archive.

    Thanks in advance.

    Morgan

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Morgan,

    thanks for using MH Magazine lite.

    If you are familiar with coding, you could create a child theme and then modify the files content.php (for single posts) and loop.php (for archives) as you like.

    Have a nice weekend.

    Thread Starter morganfardo

    (@morganfardo)

    i tryed to edit the code of content.php and uploaded the file to my child theme folder, but got a blank page (only with header) when open a single post.

    that was my code, can you help me on what i am doing wrong:

    <? php if (is_category('8')) {
            <p class="meta post-meta"><?php _e(' by ', 'mh-magazine-lite'); ?><span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span><?php _e(' in ', 'mh-magazine-lite') . the_category(', ') ?>  //  <?php comments_number(__('0 Comments', 'mh-magazine-lite'), __('1 Comment', 'mh-magazine-lite'), __('% Comments', 'mh-magazine-lite'));?></p>
    } else {
            <p class="meta post-meta"><?php _e('Posted on ', 'mh-magazine-lite'); ?><span class="updated"><?php the_date(); ?></span><?php _e(' by ', 'mh-magazine-lite'); ?><span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span><?php _e(' in ', 'mh-magazine-lite') . the_category(', ') ?>  //  <?php comments_number(__('0 Comments', 'mh-magazine-lite'), __('1 Comment', 'mh-magazine-lite'), __('% Comments', 'mh-magazine-lite'));?></p>
    ?>

    Thnaks in advance.

    When you get a blank page (“white screen of death”), it indicates that your PHP code has errors and in your example there are several syntax errors. When switching from PHP to HTML, you always need to use ?> before starting the HTML code to end the PHP code and also your PHP code starts incorrectly (it should be <?php and not <? php) and you’ve forgotten to end the if/else statement…

    For basic PHP turorials, this might be helpful: PHP Tutorial.

    iyiola

    (@iyiola)

    Michael

    (@mh-themes)

    @iyiola: Your website is hosted on WordPress.com (not self-hosted) and it’s not running one of our themes. However, if you’re using the MH Magazine lite theme on a different site than what you’ve linked here, then please create your own forum thread in case you have a question: https://wordpress.org/support/theme/mh-magazine-lite#postform

    iyiola

    (@iyiola)

    [Comment decapitalised]

    did you think before typing?….. iyiolasblog.com is a self hosted site…… why do you think i have adverts on my site!!! have you seen a wordpress.com site with adverts??? please think again….. the comments section of my website links to a blank page after being typed and sent!!!! then, i had to install a plugin (vitcom comment box) and i hate the look… please how can you help me…. tell me if you need me to change the comment box back to the default when you are ready to test it!!!
    once again!! it shows your lack of professionalism to tell me that after seing adverts and everything on my blog, you told mw it was a wordpress.com site !!!! that is bad

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s not unprofessional, it’s not even illogical. If your website has a notice at the bottom saying “THEME: PENSCRATCH BY WORDPRESS.COM.” then a logical conclusion is you’re using a WordPress.com theme. Please calm down.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re unsure of how to check which theme you’re using, run your website through this tool: http://whatwpthemeisthat.com/

    You’ll see that the tool identifies your website as having the ‘penscratch’ theme. The ‘penscratch’ theme is entirely different from to the ‘MH Magazine lite’ theme.

    You may not be familiar with WordPress.org’s forums. Themes that are distributed on WordPress.org each have a support section.
    The theme support section can be found when:

    1. Searching your theme from the repository:
      https://wordpress.org/themes/search/penscratch/
    2. Click on the matched result
    3. Look for the “View support forum” button and press it
    4. Scroll down to create a new thread

    I should also set your expectations. Everyone responding to WordPress.org is a volunteer. This means they are providing support out of their free time. It’s a nice system really, the WordPress.org website distributes free software and people support that software from their free time.

    The WordPress.org forums should not be used if you’re a paying customer. I think you are a paying customer to someone other than MH Themes from the way you replied. I would recommend double-checking the company that sold you the service and contact them. Theme authors are not allowed to support their commercial products on these forums.

    Michael

    (@mh-themes)

    @iyiola: In addition to what Andrew already said, we’ve noted this in your other thread as well: https://wordpress.org/support/topic/blank-comment-page-after-posting-a-comment-has-a-solution-been-found

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Excuse me while I go off topic for a moment.

    Once AGAIN!! IT SHOWS YOUR LACK OF PROFESSIONALISM TO TELL ME THAT AFTER SEING ADVERTS AND EVERYTHING ON MY BLOG, YOU TOLD MW IT WAS A WORDPRESS.COM SITE !!!! THAT IS BAD

    Hi @iyiola and how are you today? I’m a volunteer moderator in these forums and I noticed your posts.

    Please take a moment and give the forum welcome a read.

    http://codex.wordpress.org/Forum_Welcome

    This is a good place to start.

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Could you dial it back please? These are volunteer support forums and the people at MH Themes is helping you out of the goodness of their hearts, on their own time and for free.

    You’re asking for help and interrupting a 7 month topic. I’m closing this one and you can pick up your problem on your own topic as above.

    If you do reply to that topic then please keep it civil. I do not know what your expectations are but rude behavior is not long tolerated in these forums.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[MH Magazine Lite] Post Meta Issue’ is closed to new replies.