I am working on my own plugin in wordpress, and i want to hook to comments in order to remove written comments, but still allow user to write them using the 'Leave a Reply' form, as displayed in the following image. (I will be displaying the comments at a different location)
Any ideas?
Thank you!
Related
I am having an issue finding any way to display a single post on the woocommerce checkout specifically on a payment plugin, I use other shortcodes in these gateways and they work perfectly.
However when I try using some display post shortcodes it doesn’t work at all and instead shows up as text.
Example of my issue - i edit and put in the shortcode [display-posts] and instead of displaying the posts it simply displays [display-posts].
I have tried using multiple shortcode plugins and even tried creating my own. The main one I have tried to use is [display-posts] with the plug-in. I always put it in my themes functions.php as well!
I have tried these short codes on the regular Wordpress pages that I have that are published and have found I have the same issue, so I don’t believe it’s the placement I want the shortcode to appear at. Can anyone help me with this?
To make all the posts display you can create a custom shortcode and the shortcode which you are using is [display-posts] is not default WordPress in build shortcode. To have your same shortcode run please install the below plugin: https://wordpress.org/plugins/display-posts-shortcode/
Then you [display-posts] shortcode will work or another solution is custom shortcode as I mentioned above.
Please let me know if find any issues.
Thanks.
I am new to wordpress and have no understanding of PHP coding etc. I want to remove the sections like-dislike button, about post author and all the emojis from the bottom of all my posts. Is there any way to do this, if yes how could I disable them globally once for all posts. The only think I would like to keep is the Share part. Is there a plugin to do that?
Here is a photo of the parts under the post I am talking about:
Any helps would be highly appreciated.
I just created my first proper theme and I'm having trouble working out the last bug, I have a custom 'portfolio' post type with its own custom taxonomy (portfolio-category). However, every/any time I install the theme on a different install of wordpress (all latest 3.5) the taxonomie is broken, does not display where it is supposed to. This is after adding new 'portfolio categories' and saving.
Pastebin of my taxonomy code from functions.php and the code I call it in (for an isotope filter).
If anyone could help me I'll love them forever <3
Thanks!
Sorry, forgot pastebin link http://pastebin.com/eVqndBZP
You forgot the pastebin link but by past experience you probably just need to go to permalinks and press save.
Also see http://codex.wordpress.org/Rewrite_API/flush_rules
I need to display all my post titles in the sidebar of my Wordpress theme all the time. Just now it works only when I am browsing a category (it shows all post titles from that category). But when I click on a post, only this post title remains into my sidebar, which is not supposed to function like that.
Could you help me, please?
Thank you very much in advance!
Hristo
If you are able to write a plugin yourself, which is quite easy using the API of WordPress, you can make yourself a widget that uses the the_loop() function to print out all post titles.
If you have made your own theme, you can even integrate it into your functions.php file and then output the title within your sidebar template.
To query the post from the database you will need the query_posts() function, where you can also filter on some fields of your posts.
I'm having trouble with modifying the way comments are displayed.
Currently they are always displayed as "Comments (%)". Changing the code that's displaying the comments to doesn't seem to do anything.
Where can I properly change the way # of comments are displayed?
I'm using the primepress theme - http://www.techtrot.com/primepress/
Blog link - http://stringo0.teamjl.net
My goal is adding a comment bubble displaying the number of comments - any easier way to do this is appreciated as well!
Everything you need to know about what's available in showing comment meta: Template Tags/comments popup link « WordPress Codex
Not familiar with that particular theme, but in some there are multiple references to the comment functions, depending on the context (eg display single post, multiple posts, search results, page, etc). So check all the php files for references to the comment functions.
I'm not sure why, but the comments_number and related popup function didn't work for me. I think it's because of some filters interfering, not sure which ones - could be the intense debate commenting plugin, because I noticed that it redirects to a different anchor (#idc...).
I ended up using another function, called get_comments_number which I found by looking into the wp source code.