Ben Huson
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Subtitle] Display subtitle from children pages on parent pageThe
get_the_subtitle()function by default echoes the the subtitle rather than returning it. Unfortunately this is legacy code from before I took over development of the plugin.To return the subtitle you must use it like this, passing
falseas the last parameter:$child_subtitle = get_the_subtitle( $projects_page, '', '', false );- This reply was modified 8 years, 9 months ago by Ben Huson.
Forum: Plugins
In reply to: [WP Subtitle] get_the_subtitle() returning NULLHi,
Yes, unfortunately when I inherited and took over maintenance of this plugin if already had the
get_the_subtitle()function which echoed the title rather than returning it.As the plugin was well established, I couldn’t really change that functionality without breaking it for a lot of people.
So the
get_the_subtitle()function has a 4th parameter which you can override to return rather than echo the subtitle – see https://github.com/benhuson/wp-subtitle/wiki/get_the_subtitle<?php get_the_subtitle( get_teh_ID(), '', '', false ); ?>I know this makes no sense but it is to provide backward compatibility for existing users.
Maybe I should introduce a
get_subtitle()function, or something similar?Ben
- This reply was modified 8 years, 11 months ago by Ben Huson.
Forum: Plugins
In reply to: [WP Subtitle] Can You Style the subtitle?Have you resolved this?
It looks like you’ve added a
subtitleclass and styled that?Forum: Plugins
In reply to: [WP Subtitle] Beaver Builder IncompatibilityVersion 2.9 also had issues when previewing a post. This has now been fixed in 2.9.1 and may also have fixed your issue. Please confirm if it’s now working for you?
Forum: Plugins
In reply to: [WP Subtitle] New version (2.9) breaks preview for multiple templatesThis should now be fixed in version 2.9.1
Forum: Plugins
In reply to: [WP Subtitle] Featured image disappears in previewThis should now be fixed in version 2.9.1
Forum: Plugins
In reply to: [Expire Users] Multiple re-sends of expiry notices to users and adminPlease try version 1.0.2 and let me know if that fixes it.
ThanksBen
Forum: Plugins
In reply to: [Expire Users] Multiple re-sends of expiry notices to users and adminThanks for spotting!
I’ll rollback all changes to previous version and release an update while I figure out what’s happening.
Forum: Plugins
In reply to: [Expire Users] Interesting ConceptIf you are confident with a bit of PHP coding and are familiar with WordPress hooks, it would depend on whether you can hook into the code when an Ad is added and get access to the User ID of the person who added it.
If you can then you may be able to code something similar to the following to update the expiry date (make sure you do this in a development environment to test, not your live site):
// Get the user ID as $user_id and do some checks to make sure that // you want to update them. Are they the correct role for example? $e_user = new Expire_User( $user_id ); $e_user->set_expire_time_in_future( 6, 'months' );- This reply was modified 9 years ago by Ben Huson.
Forum: Plugins
In reply to: [Expire Users] Lots of ‘deprecated’ warnings in error log.Please try version 1.0.1 – this should be fixed 🙂
Ben
Is this still an issue with the latest version of the plugin?
Forum: Plugins
In reply to: [WP Subtitle] Empty Subtilte metabox in Admin areaIs this still an issue with the latest version of the plugin?
Forum: Plugins
In reply to: [WP Subtitle] Character IssuesThis should be fixed in version 2.9
Forum: Plugins
In reply to: [WP Subtitle] Encoding problemsThis should be fixed in version 2.9
Forum: Plugins
In reply to: [WP Subtitle] How to call wp subtitle function as og:title in Function.php?Please try:
echo '<meta property="og:title" content="' . get_the_subtitle( get_queried_object_id(), '', '', false ) . '"/>';