Support » Theme: Ad Mag-Lite » Breaking news not working

  • lordmatt

    (@lordmatt)



    After I noticed that breaking news was only showing content from the uncategorised category, I changed my default category to another one. The result was that nothing was showing up.

    I traced the problem to a function called ad_mag_lite_top_headline() which has a few curious things going on. For example, $arr_cat is set as an array with an item in it. After an if that will always return true, it is cast as an array into $cats just before an if where the test is $cats not empty.

    To hack a fix I commented out the if and the if not empty code so that it ran as if the if had returned false. This gave me the most recent posts on my theme.

    At a guess, I assume that I should be able to select the category for “breaking news” but I could not find any option that would allow me to do that.

Viewing 1 replies (of 1 total)
  • lordmatt

    (@lordmatt)

    I hacked a fix by modding the code and commenting out some of the logic. It’s not a very elegant fix.

Viewing 1 replies (of 1 total)
  • The topic ‘Breaking news not working’ is closed to new replies.