Displaying recent NEPSE News and Headlines in your website is also possible in very easy steps. You can see the format in this website which has already implemented. For this, you simply follow this single step:Copy the code inside this box and paste it to your website
After pasting on the site, did you see the RECENT News Headlines in your website? I am confident that you must see. Congratulations!!! :)
Different Options of displaying content in your website
A. Number of posts (Default is num=5)
In this code, you can only display 5 recent headlines news. But if you want to display less number of headlines or more number of headlines, then you simply change a little bit portion in the above code. You can see num=5 in two places. (Instead of num=5) in the code,
Change to num=10 in both, if you want to display 10 headline news
Change to num=4 in both, if you want to display 4 headline news
Accordingly, you can adjust the value of num according to your need.
B. Size of Image Banner (Default is w=100&h=60)
If you want to resize your banner, then you may change the image size. Suppose if you want to dispaly small image size of 50px (width) X 30 px (height) then you may replace w=100&h=60 by w=50&h=30 in both the cases.
C. Show/Hide item descriptions? How much? (Default is desc=150)
If you want to show or hide or limit the description in your content then replace the value of desc by any of the values given below (instead of 150).
(0=no descriptions; 1=show full description text; n>1 = display first n characters of description; n=-1 do not link item title, just display item contents)
D. Targeting links in the new window (Default is html=y)
Change html=n (no, if you want the links to open on the same page)
Change html=y (yes, if you want the links to open on the new window)
Please comment on this whether it worked for you or not.

0 comments:
Post a Comment