WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hacking The_Content(); (2 posts)

  1. GrayD4Web
    Member
    Posted 1 year ago #

    I'm creating a function in WordPress that dynamically generates basic HTML to paste into a craigslist ad from any post in a custom post type. It includes the_title, the_content, and several custom fields.

    The issue comes from craigslist and styling with basic HTML. There is no padding in a single cell. The work around I came up to is to add a few non-breaking spaces in front of each line.

    I want to be able to display the_content, apply a filter/function that adds a few spaces to each line break and each line breaks after a certain number of characters.

    i.e. after so many characters and words, <br> the line. then it adds &nbsp; a few times at the beginning of each line.

    Can it be done? Does anyone have a better suggestion that'll work with Craigslist?

  2. GrayD4Web
    Member
    Posted 1 year ago #

    Well I found another workaround, I added empty cells to the rows and utilized colspan's.

Topic Closed

This topic has been closed to new replies.

About this Topic