• First of all, I’m really enjoying the progress WP has made in recent months! It has become a real joy to work with. I am getting client blogs online and customized with much greater functionality than in the past.

    One project I am working on, I am trying to modify what is called the “post footer.” The theme I am using is Weaver, which allows for a lot of customization via an admin interface.

    I have two plugins added–one is WP-Socializer, where I have addded custom AddThis code, and the other is a plugin that lets you print a page or create a PDF from it (PrintFriendly & PDF).

    What happens is, these both appear after the post content, but above the post footer, where the categories, tags and edit link are displayed. I would like to have these plugins display their content within that post footer, rather than as separate content between the post and the post footer. As it stands, the two plugins display properly, but they are “stacked” on top of each other (the print plugin displays in one row, and WP-Socializer in the next).

    Am I correct in guessing that the output of these plugins is controlled by a hook of some sort? I’ve searched through the template files, even in the basic WordPress “2011” theme, but did not see anything off the bat that looked obvious. In short, I don’t know where to start looking to modify the behavior of where this “hook” (or whatever) is set to display the information.

    Even if there was another plugin that would relocate these elements, I’d be happy. Worst case, I’ll have to hard-code the AddThis code into a child theme, and ditch (or modify) the print plugin.

    I’ve searched here in the forum and the codex, but didn’t find anything except a lot of information overload that was not quite applicable to what I am trying to do.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You might be better off asking this question on the theme’s dedicated forum: https://wpweaver.info/forum/

    Thread Starter Rudy64

    (@rudy64)

    Thanks esmi. I had considered that, but it is not really theme-specific, as I have the exact same placement issue even using the default WP 2011 theme.

    I am thinking there must be some way to move this output into the post footer, but not knowing the hook system well enough, I don’t know where to start. (I’m familiar with hooks, as I use them when coding for XenForo and vBulletin. But, even those two use hooks in different ways.)

    The hook will almost certainly be wp_footer().

    Thread Starter Rudy64

    (@rudy64)

    Wouldn’t that be the page footer and not the post footer (as I’m calling it)? Or IOW, wouldn’t this be within “the loop”?

    If they are being added onto the post content, then they could be using the the_content filter. These questions should really be directed to the developers of these plugins.

    Thread Starter Rudy64

    (@rudy64)

    You might be right about the the_content filter. If it is like the forum software, you can specify whether your plugin adds onto the beginning or end of the section that is hooked. The WP Socializer plugin lets you specify if its output displays either before or after the content, so that’s a good indication it is using the_content.

    Thing is, I still need to know where the code is for that post footer in the loop, as that will give me a clue as to what I can follow up on. I will probably have to grep the files to locate the “Posted in:” text and try to backtrack from there.

    The_content() filter is a core WordPress function and we don’t edit core files, do we? ??

    Thread Starter Rudy64

    (@rudy64)

    Not unless the client pays for it, and the perpetual manual updates that go along with it… ;o)

    My point is that I just need to see what is located where (regarding hooks, functions, etc.), and how it works, so I can figure out if I want to do an edit to the child template, create a custom plugin, etc. I haven’t really had need to dig in-depth with WP in a couple of years, so I’ve been behind the curve on some of these recent new versions.

    Thread Starter Rudy64

    (@rudy64)

    I’ve been slagging through the docs here (seems to be a bit of redundancy, which is why I’ve been going in circles).

    I wonder if this would be appropriate (since we are dealing with the “meta” information):

    https://adambrown.info/p/wp_hooks/hook/the_meta_key

    This is where the items are ending up and ultimately where I’d want the plugin output to appear. Probably won’t be possible without a lot of editing.

    It depends on the plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Post footer question re: plugins’ is closed to new replies.