Source name and Source url

Posted in: Newsmag
Post count: 12

Hello tagDiv.

I have a custom page with custom fields for submitting posts made by users from the front end. It has everything I need except two field for the source name and source link. Since you guys have implemented such ability through the code of the admin’s add posts page (td_set_post_settings), I was wondering is it possible to somehow get this code and implement it to my front end posting page, either through php or maybe shortcode?

I would imagine this is the code?

<p class="td_help_section">
<?php $mb->the_field('td_source_url'); ?>
<span class="td_custom_label">Source url:</span>
<input class="td-input-text-post-settings" type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
<span class="td_info_inline"> - url to the source</span>
</p>

<p class="td_help_section">
<?php $mb->the_field('td_via'); ?>
<span class="td_custom_label">Via name:</span>
<input class="td-input-text-post-settings" type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>

</p>

Any help or advice would be much appreciated. Thank you.

Post count: 12

A little addition. My custom post form has a field in which I can place an action hook if that’s of any help. Thx.

Post count: 6600

Hi,

Sorry for the delay!
The theme td_via and td_via_url are properties of td_post_theme_settings post meta if you are registering your posts properties from another system needs to alter the post meta to add those two values.

Thanks

Post count: 12

Thank you Lucian. No worries about delay. I have done it already, but thanks anyway!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.