need help with ‘… read more’ excerpt in functions.php

Took me a couple of blind tries, but I got it. Before: <a class=”view-article” href=”‘ . get_permalink($post->ID) . ‘”>’ . __(‘View Article’, ‘html5blank’) . ‘</a>’; After: <a data-toggle=”modal” data-target=”#modal-‘ . $post->ID . ‘ ” class=”over”>’ . __(‘View Article’, ‘html5blank’) . ‘</a>’

Edit TinyMCE Button Functionality

Different Purposes The alignright class is used for floating elements where as the “Align Right” TinyMCE button is for changing the text justification. Those are actually fundamentally different things. If the button worked as you described it, then either one or text or images wouldn’t behave as expected. Solution Instead, I would recommend you add … Read more

Custom field not updating via functions upon publishing

There are two problems that I can see that cause your code to fail. The first is that you’re using update_page_meta, which does not exist. Use update_post_meta instead. The second is that you’re using the action save_page, which also does not exist. Use save_post, save_post is an action triggered whenever a post or page is … Read more