Home User profile
iip
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
iip
tagDiv Member

I have several workarounds like using an old Facebook developer account I created for a different site or editing the plugin for the time being, but I’m just bringing it to their attention as their plugin will have to be updated. You can’t create a new app in the Facebook developer console without being forced to use version 2.6 of their API.

iip
tagDiv Member

Facebook API

iip
tagDiv Member

Thanks Bogdan,

Also, we are required to have 508 compliance which means images must have alt and title text. While updating this, could you please ensure each < img > tag in the smart list templates have alt and title included? I’m fixing this through the child theme, but shouldn’t be hard to implement when making the above change.

  • This reply was modified 10 years by iip.
iip
tagDiv Member

I attempted to hide post template 8 but found the topic where you suggest, again, editing core files. Are there workarounds to editing these functions in the child theme? I’d really prefer not to edit core theme files.

iip
tagDiv Member

Unfortunately, I don’t want to add core files as we will have multiple people performing the future updates. Because 508 compliance is a must, I may hide that template for the time being. Are there any plans to implement alt/title tags for featured images on the rest of the templates? I had to manually add them on every template that did not use $td_mod_single->get_image('') for the image.

iip
tagDiv Member

Sorry Bogdan, please review the rest of my posts as I’ve covered everything that you mention here. Here’s a specific example…

One of our old articles has this for its 7-day array:
a:7:{i:0;i:371;i:1;i:363;i:2;i:142;i:3;i:107;i:4;i:55;i:5;i:1539;i:6;i:1472;}

However, it has not been viewed in months. Unless this article is viewed on days 5 and 6, it will retain those views for that day and eventually, when the weekly numbers are the highest, will show in the 7 day popular block.

Can we delete all entries from the database for post_views_count_7_day_total and post_views_count_7_day_arr? Will this reset the list? Or will it cause an issue?

iip
tagDiv Member

To continue this thread… I was looking at the code and it seems that if a post is not viewed on the current day, its number will persist from the previous week. Shouldn’t there be a function that resets all current day values in the database to 0 at the beginning of each day? The only time a number is reset is when the specific article is viewed and the last day for the article does not match the current day.

For example, if an article has 1000 views on Thursday of the previous week, but this week, the article receives zero views on Thursday, that 1000 will not be overwritten in the array because the article was not viewed.

I have several articles with bloated 7 day arrays which may or may not be viewed on any given day. Subsequently, on days they are not viewed, their previous values will persist.

Of course, this could be self-correcting because if they are promoted to the 7 day popular list, they should receive views if it is working as intended. However, the logic still seems flawed.

  • This reply was modified 10 years by iip.
  • This reply was modified 10 years by iip.
iip
tagDiv Member

I enabled custom fields and checked the 7 day view count. The top articles are showing thousands of views in the last 7 days, but this can not be correct. How and when does this counter reset? Is there any way to force all counts to zero?

  • This reply was modified 10 years by iip.
iip
tagDiv Member

The old_version is 4.6.3, unfortunately. I’m hoping someone from tagDiv can chime in.

iip
tagDiv Member

Good News & Bad News. We switch off all plugins and switched them back on one by one and found the problem…

Good News: We found out that the WPML plugin is causing the Tags to 404.

Bad News: We don’t know how to fix it. We don’t know where it is causing to to break.

Any thoughts or ideas?

Thanks
David

iip
tagDiv Member

I tried changing the tag path 6x’s already. No luck.

I am using Yoast WordPress SEO Plugin… I do not see any different settings for tags or categories.

Pulling my hair out!

iip
tagDiv Member

That didn’t help the 404’s on all the tags. Here are all the tags we have… https://share.america.gov/topics/ I just don’t understand why they are getting 404 errors.

The categories work great. We need the tags exactly like this… http://share.digital2.getusinfo.com/category/regional/

Any other ideas?

iip
tagDiv Member

Hi Christopher,

Resaving the permalinks did not work.

What are the server paths to root folder in wp-config.php?

Thanks,
David

iip
tagDiv Member

Perfect! Thanks. The homepage links work now.

BUT…. what if we want to make it a little more customized? Like this…

1. The share links on the homepage (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=homepage&utm_campaign=list — replace “https://share.america.gov/&#8221; with the full URL of the article and put today’s date in there too

2. The share links on the individual post for the similar articles (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=similararticles-YYYY-MM-DD : replace “https://share.america.gov/&#8221; with the full URL of the article

3. The share links on the individual post for top share buttons (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=sharetop-YYYY-MM-DD : replace “https://share.america.gov/&#8221; with the full URL of the article

4. The share links on the individual post for botom share buttons (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=sharebottom — replace “https://share.america.gov/&#8221; with the full URL of the article

Can this be done?

Thanks,
David

iip
tagDiv Member

Hi Lucian,

We finally lifted the password off the site and made it public today… https://share.america.gov/

As we discussed before… The facebook “Share This” link is still not working on the homepage. But, it works great on all internal pages. We are still using the td_module_6.php file.

Please help!

Thanks
David

iip
tagDiv Member

Thoughts? Any suggestions? WPML adds /es /ru /fr etc.. etc.. at the end of the urls. Can this be done on the 404.php page?

Thanks

iip
tagDiv Member

We are online. Like I said.. everything works great except the facebook on the homepage only. The facebook works great on internal pages.

iip
tagDiv Member

Hi Lucian, Can you try it on your end locally please? I still can not get it to work on the homepage.

iip
tagDiv Member

It is a secure site for internal users right now. You won’t be able to view it. You have to log in.

iip
tagDiv Member

Hi Lucian, Any ideas why the facebook wouldn’t work on the homepage only?

Thanks

iip
tagDiv Member

Any luck?

iip
tagDiv Member

Wait.. I spoke too soon. Sorry

GOOD — The Twitter “Tweet this” works great.

BAD — The Facebook “Share this” does not work. The URL is cut off for the homepage. It only shows this… http://www.facebook.com/sharer.php?u=/ BUT… The Facebook “Share this” works fine on internal pages.

Any idea what’s going on here?

iip
tagDiv Member

PERFECT! Thank you so much. It works great.

iip
tagDiv Member

Can we just add this code from the social sharing? Or can you help modify that for us?

<?php echo $this->get_image(‘art-wide’);?>
<?php echo $this->get_social_sharing();?>
<?php echo $this->get_title(td_util::get_option(‘tds_mod6_title_excerpt’));?>

iip
tagDiv Member

Would it be td_module_6.php? Something like this?

<?php echo $this->get_image(‘art-wide’);?>
INSERT MY CODE HERE???
<?php echo $this->get_title(td_util::get_option(‘tds_mod6_title_excerpt’));?>

Viewing 25 posts - 1 through 25 (of 27 total)