Just the ones listed on the Postie Image tab.
I’m not quite sure what you’re trying to accomplish. Can you give me an example?
We have two menus and two event calendars. We’re sending them in as pdf attachments. In the attachment template, I have “<p>Current Menu</p>”
What I really need is
<p>{EmailSubject}</p>
I need to be able to change out the words of the anchor depending on the email sent in.
Just in case someone else wants to try this…I built a custom loop that finds the child page and child page’ attachment url. Show’s a link.
{cat} is the post category
{anchortext} is the text of the link
//Custom Loop
define( 'WP_USE_THEMES', false );
$arg = array(
'post_type' => 'post',
'cat' => {cat},
'posts_per_page' => 1,
);
$my_wp_query = new WP_Query( $arg );
while($my_wp_query->have_posts()) {
$my_wp_query->the_post();
//Variables for content
$post_id = $my_wp_query->post->ID;
$post_link = get_permalink();
// Get the child ids
$children_args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post_id
);
//Echo the results of the child ids
$attachments = get_posts( $children_args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
$child_id = $attachment->ID;
echo '<div>';
$attachment_page = wp_get_attachment_url( $attachment->ID );
echo "<p class=\"{class}\" id=\"$post_id\">";
echo"<a class=\"button red full-width\" href=\"$attachment_page\" id=\"$child_id\">{anchortext}</a>";
echo '</p></div>';
}
}
// Wrap up php
} // end while
wp_reset_postdata(); // reset the query