Support » Plugin: Notely » Notely don’t show in Post Type

  • Resolved davidudv

    (@davidudv)


    Dear,

    I am running new website with post type like “tour”, and i install this plugin “Notely”, but this plugin don’t show when i create new tour.

    Instead when i create new post (normal post), i can see it.

    I am tryed to add new code into notely.pfp file but it don’t run:

    	// Add the meta box to TOUR
        function notelypage_meta_box(){
            add_meta_box(
                 'notes',
                 sprintf( __( 'Tour Notes', 'notely' )),
                array( &$this, 'meta_box_content' ),
                'tour',
                'side',
                'default'
            );
        }

    Can you help me?

    Kind regards,
    DAVID

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Michael Ott

    (@mikeyott)

    Hi David,

    Better late than never? Sorry for some reason I haven’t been getting support notifications 🙁

    Anyway, I’ve just deployed an update that allows you to specify which post types to enable notes on.

    Have fun.

    Dear Michael,

    Thanks for your update. Now I can see Notely in my Post Type.

    Do you know if is possible to see notes in frontend, but only for registered users?

    I hope your answer.

    David

    Plugin Author Michael Ott

    (@mikeyott)

    No worries.

    I haven’t built in functionality to show the notes on the front-end, but if you’re cool with making a small change to your theme or child theme, place this wherever you want notes to appear…

    if ( is_user_logged_in() ) {
        $note = get_post_meta($post->ID, 'notely', true);
        if ($note) {
            echo $note;
        } else {
            /* Do something here if no notes */
        }
    } else {
        /* Do something here if not logged in */
    }

    …and the relevant notes will be shown (if there are notes) and if the user is logged in.

    You may want to wrap it in a nice function, limit it to pages or posts or whatever you need.

    • This reply was modified 1 month, 2 weeks ago by Michael Ott.
    davidudv

    (@davidudv)

    Dear,

    I am searching where i can include this php code.

    Do you know if i can add this notes in contact form i received from customer?

    Kind regards,
    DAVID

    Plugin Author Michael Ott

    (@mikeyott)

    Sorry @davidudv but the plugin doesn’t support that.

    davidudv

    (@davidudv)

    Ok, thanks

    davidudv

    (@davidudv)

    Dear Michael,

    This code in a template runs in the global context, but i include this code in a widget, that will run in a function context. Do you know how declare global variables as global?

    I use this plugin: https://wordpress.org/plugins/php-code-widget/

    Can you help me?

    Kind regards,
    DAVID

    Plugin Author Michael Ott

    (@mikeyott)

    Sorry David, but that is well outside the support scope.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.