e-Newsletter custom template advanced customisation

Hi,
I have previously created a custom newsletter template without issue.
But I now want to create a more advanced template where the content is structured.

The current system has a a WYSIWYG editor for content , but no ability to drop out to HTML, which means that structuring layout of content is limited.

In an ideal world, I'd like the ability to input a post ID (multiple times) and that would take the featured image and excerpt and link and structure that up (just like an archive page really), but unless the code is seriously 'hookable' I guess I'm going to have to just work in manual HTML.

Sorry if my question isn't very clear, but in essence I'd like to do content structured with multiple rows e.g.

<!-- content -->
			<div class="content">
				<table>
					<tr>
						<td>

							<h1>Great Scott!</h1>
							<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.</p>

							<!-- A Real Hero (and a real human being) -->
							<p><img src="http://placehold.it/600x300" /></p><!-- /hero -->
							<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
						</td>
					</tr>
				</table>
			</div><!-- /content -->

			<!-- content -->
			<div class="content">

				<table bgcolor="">
					<tr>
						<td class="small" width="20%" style="vertical-align: top; padding-right:10px;"><img src="http://placehold.it/75x75" /></td>
						<td>
							<h4>Title Ipsum <small>This is a note.</small></h4>
							<p class="">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
							<a class="btn">Clickity Click &raquo;</a>
						</td>
					</tr>
				</table>

			</div><!-- /content -->
  • Michael Bissett
    • Recruit

    Hey @Locally, hope you're doing well today! :slight_smile:

    In regards to inserting raw HTML like what you have in that example above, what if you were to install the TinyMCE Advanced plugin:

    https://wordpress.org/plugins/tinymce-advanced/

    And then insert your HTML code into the "Source Code" editor under the "Tools" tab? I've attached some screenshots below as to how it looked on my test site, let me know what you think please! :slight_smile:

    Kind Regards,
    Michael

  • Fullworks
    • The Bug Hunter

    Cheers, certainly means I can get the job done.

    I spent a little while looking round the code and the idea of an 'archive' structure being hooked in, would be quite complex.

    But now with your suggestion, I can create a program to created the required html and then just cut and paste it into the content.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.