ElginC
Forum Replies Created
-
Hi Harsha. Try to use this shortcode: [display-posts posts_per_page=”5″]
Hello, I tried to do that but that messes up the website (the website wont load at all when I add the code to theme-functions.php) Maybe adding the code manualy after the plugin update would do it.
I found a solution of my problem. For everyone having this problem, here is what I did:
I added the following code inside the display-posts-shortcode.phpfunction be_excerpt_link( $more ) { return '<a href="' . get_permalink() . '">' . $more . '</a>'; } add_filter( 'excerpt_more', 'be_excerpt_link', 20 );
Here it is where I added this code:
// Create the shortcode add_shortcode( 'display-posts', 'be_display_posts_shortcode' ); function be_display_posts_shortcode( $atts ) { function be_excerpt_link( $more ) { return '<a href="' . get_permalink() . '">' . $more . '</a>'; } add_filter( 'excerpt_more', 'be_excerpt_link', 20 );
Please someone help me, this is the last feture for my website to start… Thanx.
You’re always welcome manindra.
It depends on the kind of theme you use, for example my style.css theme is empty, it calls the .css from other specific locations. Glad you found the solution to your problem.
The css classes apply to the plugin only. If you can be more specific what do you want to do can you give me an example?
Try to add this code to your .css file
.display-posts-listing li { list-style-type: none; min-height: 175px; overflow:hidden; padding-left: 175px; position: relative; width: inherit; } .display-posts-listing .title { font-size:1.2em; font-weight:bold;} .display-posts-listing img { left: 0; position: absolute; top: 0; }
You’re welcome.
Hello. There is nothing wrong with your shortcode but for the images to display you need to set them as ‘feautered’ images. Images that are inserted inside the post wont show up.
Resolved, for some reason this was entered in my style sheet by a co worker. . .
.title {display: hidden;} lol.
LOL
And please where to put those codes (the php and the css). Thank you.
Forum: Fixing WordPress
In reply to: Getting "Cheating Huh?" error since 3.4 upgrade@cravecreative Thanx a milion times man that solved my problem.