• Hello, I’m still waiting for the answer to the previous question and I’m rooting for your work.

    Your plugin is fantastic. Thank you for keeping you updated.

    My two suggestions:
    1 – CREATE HOOK FOR SINGLE.PHP
    It is currently only displayed on the post, if added by the widget in the sidebar. I believe it can be multifunctional if we add a hook inside single.php. It’s possible?

    MY IDEAS:
    I want to create multiple PostTypes capable of giving me several resources:

    Post type Advertising – I add advertising above the post, below the post or wherever I want.

    Post Sources – Each post has a different source (CNN, The Times, The Post, Etc.). I want to put the font name with the logo (featured image). It will also be possible to create multiple collaborators without the need to register them in WP as authors.

    All this is possible with the help of your plug-in, which gives me the opportunity to choose from each individual post many interesting ideas.

    However, I have to create multiple sidebars in specific places inside single.php and then configure the widgets.

    This would make it easier if you provided a gain to add in single.php. It’s possible?

    2 – STANDARD CONFIGURATION CODE FOR FUNCTIONS.PHP
    When I create the posttypes in a standardized way, I would like to allow the REFERENCES plugin settings within functions.php, without the need to reconfigure everything in Tools> References.

    Is it possible to create a default setting in functions.php?

    I await your response and continue to appreciate your intelligence and your work

    • This topic was modified 6 years, 8 months ago by LucasTolle.
    • This topic was modified 6 years, 8 months ago by LucasTolle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shra

    (@shra)

    LucasTolle, hi!

    These thoughts deserve to be investigated. And I think it is possible to create API to use it in functions.php, but it is not rapid task ??

    Thread Starter LucasTolle

    (@lucastolle)

    Hi Shra, again.

    Thanks for your attention one more time.

    One of the above requests, I found on the page of your plugin. I should have looked closely.

    However, I’ve tried exhaustively examples that you’ve left in addition to fetching several examples on the web but failed to work for me. Did I forget something? Do I need to put something in functions.php?

    Look what I have only:

    <?php get_post_meta($post->ID, '_ref_1', true); ?>
    <?php $meta = get_post_meta($post->ID, "_ref_1", true); ?>

    Neither works for me.

    Any ideas will be appreciated. ??

    Plugin Author shra

    (@shra)

    Hello, LucasTolle!

    I prepared bundle of functions as plugin API. Now there are only 5 functions aboard. But we have all we need – create/update/delete configs using API functions, and read/update reference’s data for content (posts).

    As for all this mess with widgets, soo.. widgets work in the certain way, we can’t change it, but you can programatically create any blocks and reuse them anywhere in your templates.

    • This reply was modified 6 years, 7 months ago by shra.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestions: Single Hook and Default Settings in functions.php’ is closed to new replies.