Forums

[resolved] Problem with getting content from front page (17 posts)

  1. anthonymowl
    Member
    Posted 1 year ago #

    I am using a template for my wordpress website (anthonymowl.com). The front page is supposed to show the text and picture from the /aboutanthony page. The strange thing is it is showing the title and it is linking to the right page, but it is not showing the picture or the actual text, so I know that the post ID is right. I can't figure out why the template's "garbled" text is still being displayed even though I have already removed and edited the garble, and that garble is nowhere to be found now. Can you help me figure out why it's not displaying my text and picture on the front page? Everything else on the front page and the template is working except for this. The code is below- thanks!

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. anthonymowl
    Member
    Posted 1 year ago #

    Here is the code that I was talking about:

    http://pastebin.com/XNkU9aay

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you set the image on the About Page as the featured image? Also, the template is pulling the text from a custom field in the About page called "test" rather than from the page content itself.

  4. anthonymowl
    Member
    Posted 1 year ago #

    Hi- thanks for helping me out. The about page that I am editing in the "Edit Page" on my dashboard does not have a widget to set a featured image or any custom fields. I do see custom fields and featured image options when I edit my collections etc but not here.

  5. anthonymowl
    Member
    Posted 1 year ago #

    Is there a way for me to set the image as a featured image using html code instead of a widget since it is not there? How can I override the custom field to get it to show the text in the main box?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    The about page that I am editing in the "Edit Page" on my dashboard does not have a widget to set a featured image

    Try looking further down the page on the right.

    or any custom fields

    Click Screen Options whilst editing that Page and ensure that Custom fields is checked.

  7. anthonymowl
    Member
    Posted 1 year ago #

    That definitely SOLVED the problem for the text! The screen options did the trick to get the custom fields to appear. Now I just have the issue of the image. Screen options did not have an option to set a featured image. Any suggestions?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Look in the right hand column of Edit Page - near the bottom.

  9. anthonymowl
    Member
    Posted 1 year ago #

    It's not there on the Edit Page. The featured image option does appear on other pages like collections etc but not on the edit page. How can I get it to appear?

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Does it appear on any Edit Page (as opposed to Edit Post)?

  11. anthonymowl
    Member
    Posted 1 year ago #

    No. It does not appear on any edit page or even on edit post. The only place it appears is when I edit collections or slides.

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

  13. anthonymowl
    Member
    Posted 1 year ago #

    It was the theme. I switched to the twenty-ten theme and the featured image option appeared. I was able to set the image inside that theme and now it is appearing. When I switched back to my theme, the featured image option disappeared. Is there a way I can add it inside of my theme?

    If not, I don't really have a problem switching themes in order to set the featured image. it's a little extra work but not a big deal to me. You were a HUGE help. Thank you so much!!

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try adding: add_theme_support( 'post-thumbnails' ); to your theme's functions.php file.

  15. anthonymowl
    Member
    Posted 1 year ago #

    That did not work. I put that line at the very end of the functions.php file. Is there a specific place I should put it?

  16. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Can you check to see if that line appears anywhere else in the functions.php file? If it does, remove the line you added and try deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

  17. anthonymowl
    Member
    Posted 1 year ago #

    Ok will do this. Thank you so much you were VERY helpful. I can't thank you enough.

Topic Closed

This topic has been closed to new replies.

About this Topic