syrus33
Forum Replies Created
-
Cheers Luca,
1 final question before you can mark post as resolved.
The php from code generator (inserted into categories) works fine.
see http://digifixit.co.uk/tutorials/category/windows/However am unable to get it to show any posts when same php is posted in tag.php, i’ve played with the options but still cant get anything to display. I can get the tags to display with the default themes code tho.
eg.
http://digifixit.co.uk/tutorials/tag/active-x/Code used:
<?php
$args = array(
“widget_title_hide” => “yes”,”post_limit” => “50”,”post_content_length” => “30”,”post_content_length_mode” => “words”,”post_author_url” => “no”,”post_category_link” => “no”,”string_break” => “[Read More]”,”category_autofilter” => “yes”,”vf_everything” => “no”,”vf_allcategories” => “yes”);
special_recent_posts($args);
?>Could you please advise if this is possible?
Thanks
I was only using free version so therefore these options were not visible. Seen some screenshots of additional options on code canyon and purchased. Works perfectly now and money well spent, thanks.
2 other quick questions though as im new to php/wordpress 🙂
1) Using the php generator to insert code into theme files, how can I make the post string break bold? I tried adding <b> as a allow tag which doesn’t work – I know im going about it the wrong way.
eg. from template:
“allowed_tags” => “<b>”,”string_break” => “<b>[Read More]</b>”,2) Kinda a feature request this one. Would like to add an advertisement within the special recent posts output. Like after every 5 posts displayed. Would be neat to have the ability to add shortcodes from other scripts/php and allow users to specify after how many posts it appears. If that makes sense
Thanks for your help
Cheers for the reply, believe I understand what you mean.
To Clarify: I want to keep the same SPR style throughout the entire site. I currently have only 1 instance of SPR which is shortcode on the main page & am happy with the default css in css-front.css – assigning id/s and classes shouldn’t be required. What im trying to achieve is all posts in tags / author / categories to be dislay in the same format (current theme layout for the pages is totally different and doesnt include post time or thumbnail)
So in order to have the tag/category/author/etc urls eg websiteurl.com/tags/<tag names> to display all posts in the same style as my main page – i can paste the php from a SPR widget into the themes tag.php which will display all posts relating to that tag in the same style as on the main page?
Now this may be (another) stupid question – How do I obtain the php code from the widget? I need to display the content within the pages content & not in the widget area.
If that doesnt make sense am I able to post the url as a visual example?
*duplicate post*
Unfortunately it doesn’t with my theme, no thumbnail shows when you click on tags or the archive as the code isn’t included in the template files.
I have had to resort to manually adding the date & thumbnail, etc
The css however is totally different as the shortcode isnt included in the template file & because I dont use a widget the plugin isnt executed on the page.
Can you please explain how I can get it to do that?
Cheers