Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Client wants to add custom content to sidebar/other column

  • This topic is empty.
Viewing 15 posts - 16 through 30 (of 38 total)
  • Author
    Posts
  • #115765
    Watson90
    Member

    I suppose I’ve gotta’ do what makes the client happy…

    #115768
    chrisburton
    Participant

    Sounds like he has no idea about UX.

    So all you need for the main column (left) is the main editor. Nothing special.

    For the right (sidebar), you might want to look at custom meta boxes to have input fields to post youtube videos (if needed), images (Attachments plugin) and a description textarea field.

    #115769
    Watson90
    Member

    I knew that one day I would have to come across setting up meta boxes, I’ve never looked into them really, the same with custom post types, never used them either :/

    I will look into it now.

    So, once it is done, when I am in the backend of wordpress editing the ‘About’ page, will i see the main large text editor and also 3 boxes to the right of it?

    #115771
    chrisburton
    Participant

    Here you can see how mine is setup. If you scroll down, look for ‘My Custom Meta Box’, that content displays in my sidebar as a description. You would add that under the input field for your YT videos if he requires that to be a feature.

    #115773
    Watson90
    Member

    Ahhh, that’s exactly what I’m after, @chrisburton. I have just been looking at this;

    http://www.farinspace.com/wordpress-meta-box-next-level

    Is this kind of thing I should be doing?

    #115776
    chrisburton
    Participant

    I use WPAlchemy but it’s not easy to implement. http://wordpress.org/extend/plugins/advanced-custom-fields might be something you’d like.

    #115783
    Watson90
    Member

    What a cool plugin!!! It’s pretty much perfect, thanks so much for you help! Take a look now, @chrisburton.

    How do you get the attachments plugin to work btw? I have used the image function built in with the custom fields plugin and it just comes out as text
    >
    58, , book, , , http://communicatingisimportant.com/wp-content/uploads/2012/11/book.png, Array

    http://communicatingisimportant.com/about

    #115784
    chrisburton
    Participant

    @Watson90 Throw your PHP up in codepen

    #115786
    Watson90
    Member

    http://codepen.io/Watson90/pen/rpaIB

    In the code on my website I have removed the p tags surrounding the picture_box shortcode.

    #115787
    chrisburton
    Participant

    @Watson90 Hover over ACF plugin and go to Settings. Click on your fields and get the PHP for them. See if that works? @TheDoc is more familiar with this particular plugin than I am.

    #115794
    Watson90
    Member

    @chrisburton, Since adding the PHP code to my functions.php file I seem to have two of the meta boxes on my about page in ‘edit’ mode :S

    #115825
    chrisburton
    Participant

    @Watson90 Is it supposed to go in functions.php or your template? I can’t remember. Also, please take a screenshot.

    #115841
    Watson90
    Member

    The whole of the PHP code is meant to go into my sidebar.php file? When I did that I got a load of errors. And if I put the code in my functions.php file how does it know to output to the sidebar.php file? It’s confusing, haha.

    #115846
    chrisburton
    Participant

    @watson90 Well go back to whatever you did before where it outputs normally. Then, in your theme file, try the following code instead of the one you showed me in codepen.

    #115848
    Watson90
    Member

    @chrisburton – YES! http://communicatingisimportant.com/about/

    I seriously can’t thank you enough, man!

Viewing 15 posts - 16 through 30 (of 38 total)
  • The forum ‘Other’ is closed to new topics and replies.