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.
Related
I am trying to restore the missing titles to posts in my categories, tags, search pages.
I vaguely remember changing something but don't know where. It was a long time ago.
The problem is so bad that if there is no 'read more' button, you can't click on a result to go to the page.
Any tips about how to find where this code change would be located?
Thanks.
if you know what the code was there is a plugin called string locator (https://wordpress.org/plugins/string-locator/) it allows you to give a small snippet of code or a call and it will tell you every place that code is found in the entirety of WordPress.
OK after quite a while of various methods, I re-installed the plugin 'yellow pencil'. I had made some customizations that the plugin claims to be reversible at the click of a button globally (It didn't delete them). I found a post title that did appear and then reverted all customizations globally to it on a live category page. Thank god it all works as it should now!
Thank you to all that tried to help me.
I'm struggling with my wordpress page, with woocommerce. The featured image should be showing as the first image on the product page, but isn't. I've read a few other threads, like this one:
Product Images don't show (Woocommerce)
where they have some solutions, but the CSS they are proposing isn't working.
My page is here: www.byjgk.com , and for example, if you check out a product category page, like: https://www.byjgk.com/product-category/dresses/ , and then select a dress (e.g.: https://www.byjgk.com/product/the-jersey-maxi-dress-petite-in-sandstone/), you should then see the same featured which was on the category page also appear as the first image on the product page as WELL/(in addition to the other 3 images that are there).
Normally, that's how the image feature works, so there must be some opacity/other problem.
I also did try changing the woocommerce.css file, (which was also a suggestion in the link above, to put this there:
.product.has-default-attributes.has-children > .images{opacity :1;}
but i didn't see any class called exactly that with the word "children".
I also tried to put the "jquery" that was suggested:
$('.woocommerce-product-gallery--with-images').css('opacity', 1);
into the functions.php section, but it said this query had some sort of error, or it didn't like the "$" maybe...
Soooo, I'm at a loss. please help. I see a few people have asked about this on some other forums, but many don't figure it out.
thanks!
Okay, after some trial and error it seems like one of my own plugins was causing this conflict. If anyone is using this plugin, be aware of the potential - i haven't yet played with the settings on this pluging to see if that's changable.
https://wordpress.org/plugins/gallery-slider-for-woocommerce/
I would suggest you to update the theme, plugins and wordpress as well because something is not working properly for you, if the problem continues, start deactivating the plugins to understand what is causing this problem.
Please can someone tell me how I can change the position of my meta tags within my Wordpress theme so that they appear immediately after the initial "head" tag.
The reason is that when I look at the source code of my webpage I can see all my css code before I see my meta descriptions
BUT, the problem is, BING does not fetch the entire page, but only the first so many 1000s characters and as such it is not finding my "title" or "meta" tags and so my SERP listings are basically blank
If I can move the generation of my meta data "higher up" in the head tag and before the CSS then this will solve the problem beautifully.
The issue is, I have no idea how to do this...I think it something to do with the wp_head() function but whatever changes I've made have made no difference
I am using the all-in-one seo plugin if that makes any difference
Thanks in advance as this has been driving me nuts for weeks and I will confess that I'm not very good with wordpress as I am of a "certain age" where I still think DOS is wonderful :-) :-)
Dan
This depends on your theme (and maybe plugins). You should check in your theme's header.php if you can find it. Most of what is in the <head> is done by the wp_head. Both theme's and plugin can add stuff inside that with the hook.
I can't help any more without you providing more info (and code).
Hope this will get you started.
Rough steps;
Find where the <meta> tags are added, look for the wp_head reference.
Once you find it, use remove_action. Then re-add it with a higher priority with add_action.Look for the priority argument.
This way you can do it in your own theme, or a small custom plugin. You don't want to touch the plugin files or wp-core.
I have never used wordpress as a cms for a site so please forgive my obliviousness. I tried to google this for a bit with no luck, I think I am either phrasing this wrong or thinking about it incorrectly.
I have page on wordpress that I would like to feed in a bunch of "news" posts. Can I code this within the actual page (like the text input section). How would I go about doing this. Is it possible to have a plugin or some shorthand code that would feed in all the posts with a certain category, and further more is this possible to do within just the general page editor (just within the wp-admin panel). Again, sorry for my obliviousness, I feel like this is probably a pretty simple answer, but I haven't worked on wordpress in years.
Thank you for your time!! Any points to the right direction would be incredibly helpful.
You can try:
[display-posts tag="advanced" posts_per_page="20"]
This will list the 20 most recent posts with the tag ‘Advanced’.
For more options, check this: http://en.support.wordpress.com/display-posts-shortcode/
I am using Custom Field Template plugin for my WordPress project. I have multiple field fieldset which allows to upload a photo and add title from the back end.
The problem: when ever I update the post first fieldset disappears and it keeps doing that until only one field set is left.
I would really appreciate some wise advice from you guys cause this issue is making me sick right now.
Plugin I use: http://wordpress.org/extend/plugins/custom-field-template/
Functions.php file and template file is built according to this tutorial: http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/
I found the solution to this. Since I have seen couple more people with a similar issues I think I can help.
So If you are using CFT plugin for wordpress and your multy fieldsets gets wiped out if you add more than 2 of them just transfer them to another template and it works perfectly well...