Featured

Posted in: Newsmag
Post count: 38

Hi

The news I will be migrating into Newsmag had 2 preferred status categories. Let’s say one (we called it “main”) is similar to Featured and only the most important/interesting would make it there the second, we called it “flash” was used for, let’s say, top 25 percentile of the news or “editor’s picks”.

Now you have “featured” by default. How can I add “flash” category that behaves similar to featured (i.e. is hiden from nav and is kind of shadow category)?

Another related question, you have by default option to enable last 7 days for most popular, how can I make it last 3 days?

Post count: 6535

Hi

The theme create Featured category when it is installed for first time. The code which generate that category is located in td_first_install.php file: http://screencast.com/t/iSvZkyr8t There are defined the name and slug for that category which are used in code for different features.
You can use below code in function.php file to define a new category

wp_insert_term('Flash', 'category', array(
'description' => 'Flash posts',
'slug' => 'flash',
'parent' => 0
));

I am not sure how you want to use this new category but to achieve the same exact functionality as for Featured category are required lots of customization. Basically you will have to search in theme’s code for each usage of Featured category name and add in code a case for your new category.
This is a complex task which involve good coding skills in order to be achieved. Unfortunately we cannot offer customization services at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

To reduce the number of days considered by 7 days sorting you have to edit td_data_source.php: http://screencast.com/t/nkiFBNen6B and td+page_views.php: http://screencast.com/t/DhtmnFzEbh and update the indicated value.

Thanks!

Post count: 38

thank you.

For 7 days thing, why not let your customers choose from admin rather than leaving to modifications in the code?

Post count: 6535

Hi

That sort was intent to work only with a 7 days period of time. We may change this functionality in future so users can chose the period. I can’t promise anything for sure yet but I’ve added this on our list and when the time comes developers will consider it.

Thanks!

Post count: 38

The logic behind having it flexible:

It is very much dependent on what the site is. If you have a news website that has 50-100 news daily and people are used to read the latest, a news piece that is stuck on a prime location and is 7 days old is out of place.

Plus, a piece of news that is very popular in last couple of times will not get the exposure it deserves because it has to “compete” with views for last 6-7 days from less popular ones.

Post count: 6535

Hi

Yes I agree with your point of view. We try to make the theme more flexible in future so users can chose how the features will behave.

Thank you for your suggestion and for your message!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.