amexing
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to enable “Custom fields” option for custom post typeI thought to go ahead with plugin and created a custom field of type Wysiwyg Editor but the problem is that content is not formatted properly. It is showing all of them in a single lines as shown in the image below.

Any idea what needs to be done here.
Forum: Fixing WordPress
In reply to: How to enable “Custom fields” option for custom post typeThank you both, I thought there maybe some easy option like enabling some checkbox or something else from front end. For now I am not going with installing plugin or adding any additional code.
Was under the impression that option to create custom fields should be available to all post types by default.
Forum: Fixing WordPress
In reply to: How can we automatically ad a default image to a postHi @corrinarusso that is not what i am looking for. My requirement is to add an image inside a post. I dont want to add a featured image (Thumbnail)
Hi @sterndata what you shared is very close to my requirement. But could you please share any code snipped that will help me to check if any post has any image inside it or not? That will re really helpful.
I didn’t find any plugin so trying to write my own code.
Thanks
Forum: Fixing WordPress
In reply to: How to check if a custom post has no categorySorry @corrinarusso this is not working for custom post i am using here @ askpuzzle.com
Forum: Fixing WordPress
In reply to: How to check if a custom post has no categoryCould please help further i did try something like this and didn’t work.
<?php if has_category( $category = '') {?> <div class="question-content-text-no-category"> <?php }?>Forum: Fixing WordPress
In reply to: How can we automatically ad a default image to a postHi @corrinarusso
I am not looking for featured image. I am asking for a simple image inside a post.Thanks @sterndata i am not good in code so was looking for any plugin or ready made code that i can use. By any chance if you come across any other plugin or link which would be close to my need, please share. Thanks again.
Forum: Fixing WordPress
In reply to: How to enable read more by default using jqueryThanks @crstauf
This worked like a charm!!
Forum: Fixing WordPress
In reply to: How to enable read more by default using jqueryHi @crstauf
Thanks for the code. I got below error when copied the code to function
Your PHP code changes were rolled back due to an error on line 190 of file wp-content/themes/discy-child-theme/functions.php. Please fix and try saving again.
syntax error, unexpected ” ).each( function() { jQuery ‘ (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’
Thanks
Forum: Fixing WordPress
In reply to: How to enable read more by default using jqueryHi @crstauf thanks for your time, Yes i am using Discy theme but they dont support any customization and my support has expired. I tried CSS but that doesnt help/work.
I got below update from another forum, but i have never customized jQuery before so dont have any idea where to place this code, which file i have to update.
jQuery(document).ready(function(){ jQuery(".post-read-more").each(function(){ jQuery(this).click(); }); // And if you want to finally disable this links jQuery(".question-read-more").remove(); jQuery(".question-read-less").remove(); });Would highly appreciate further assistance on this.
Thanks