• Hello –

    I hope you will consider making the Call to Action button optional as part of the Default Post Template.

    Additionally, please consider giving the ability to set the default URL for the Call to Action button something other than the wordpress blog site. For example, I would like the default CTA URL to be my website not a link to the blog post.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Koen Reus

    (@koen12344)

    Hi Russ,

    Thanks for the feature requests. Those would be nice additions indeed. I’ll put them on the list for a future version.

    When creating new GMB posts from the metabox, you can actually disable the call to action, or change the URL: https://util.tycoonmedia.net/download/add_a_button.png

    Thread Starter russdietz

    (@russdietz)

    Hi Koen! Thank you for your reply.

    My posts in WordPress are created via their API, so I’m not entering the post by hand hence my issue.

    Thank you for this awesome plug in! I have searched and searched and found very few tools to post to GMB and even fewer that do it reliably.

    Russ

    Plugin Author Koen Reus

    (@koen12344)

    I see, does your API integration allow you to set custom fields? If so, I could make it so that you can override the default template to suit your needs.

    Glad you’re enjoying the plugin!

    Thread Starter russdietz

    (@russdietz)

    Hi Koen! Thank you again for your reply.

    I’m using Integromat for the integration and as far as I can tell it doesn’t allow custom fields. That being said, I think I have it working the way I need. I was able to edit some of the data that is stored in the wordpress database (wp_options) to get it to work the way I need.

    Thanks again for such an awesome plugin.

    Russ

    Plugin Author Koen Reus

    (@koen12344)

    Hi Russ,

    I can see how editing the wp_options would allow you to disable the button, but did you also manage to change the URL that way?

    Be on the lookout for the next version, it should do what you need without having to edit the wp_options table! ??

    Thread Starter russdietz

    (@russdietz)

    Hi! Yes I was able to edit the permalink URL for the wordpress site to be the same as my regular website, which you can do from the UI BUT when you do it from the UI it puts “https://www” which was displaying an error when a user clicked the button due to a issue with my sites security certificate… so I was able to modify the URL to remove the www which resolved the issue.

    I don’t actually use my wordpress site for anything other than pushing posts to various social media sites so editing the home url was not an issue for me.

    I will definitely be on the look out for the new version! Thank you for your help!

    Plugin Author Koen Reus

    (@koen12344)

    Hi @russdietz!

    I see you already managed to make it work the way you need, but I just uploaded version 2.0.10 to the repository, which has a filter function for the autopost feature (mbp_autopost_post_args). With that you can do it a more elegant way:

    Remove call to action:

    
    <?php 
    	function autopost_remove_button($args, $location){	
    		unset($args['callToAction']);	
    		return $args;
    	}
    	add_filter('mbp_autopost_post_args', 'autopost_remove_button', 10, 2);
    ?>
    

    Edit the URL:

    
    <?php 
    	function autopost_change_button_url($args, $location){	
    		$args['callToAction']['url'] = 'https://example.com';
    		return $args;
    	}
    	add_filter('mbp_autopost_post_args', 'autopost_change_button_url', 10, 2);
    ?>
    

    You can put these snippets in your themes’ functions.php or use a plugin like Code Snippets.

    I’ve also added a feature to the Pro version of the plugin that allows editing the URL from the settings page, and use variables in it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Call to Action Button in Default Post’ is closed to new replies.