- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
Why didn’t you continue writing the date next to the updates?
for example as you did before: v 1.6 – 18 october
I hope v 1.7.3 is the latest update
It would be really helpful just to have a date next to the updates in the future.
Thank you
Please check only problem with the server not relevant
Summary of Recommendations look
I found out what the problem is but no clue what causing it or how to fix it. I followed this guide in the Newspaper FAQ and tutorials section:
https://forum.tagdiv.com/how-to-manage-html-structure-compromised-the-site-looks-bad-broken/
It turns out that the problem isn’t with HTML but with my CSS structure. I used the W3C CSS validation service and the results are below if @radu can please have a look.
regards,
Hello.
How can I add adbox in infinite scroll?
for example, I would like to display like this
in Block 3 (infinite scroll)
article
article
article
article
article
adbox
article
article
article
article
article
adbox
article
article
article
article
article
adbox
….
….
….
….
Hello Radu & Marius,
First of all I would like to thank you for developing this great theme guys, great work!
I think there’s a bug with homepage loop filter and sidebar settings. When I enter a category ID(s) for Multiple categories filter, sidebar setting from dropdown is ignored and default sidebar is being called(If top category entry on the list has a sidebar assigned, then that on the homepage assigned category sidebar is being rendered).
http://imgur.com/UcVsr0I
http://imgur.com/LsrP8k0
The weird thing is if sidebar is on the left then it works correctly. So when I check page-homepage-loop.php:
If query_posts($queryPost); is called after <?php get_sidebar(); ?> we have this problem.
So can you think of a way to address this problem?
The pagination issue is caused by offset parameter. I set offset argument to 5 in order not to repeat the posts in the slider. But this causes the “paged” attribute in WP_Query to be ignored. This is documented in WP Codex:
offset (int) – number of post to displace or pass over.
Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround).
Making Custom Queries Using Offset And Pagination
http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
I adopted the solution above to my situation as here:
Newspaper-child\functions.php
add_action('pre_get_posts', 'myprefix_query_offset', 1 );
function myprefix_query_offset(&$query) {
//Before anything else, make sure this is the right query...
$not_in_ajax_call = get_permalink();
$in_home_page = ! is_page('');
if ( $not_in_ajax_call && $in_home_page ) {
return;
}
if ( empty( $query->query['offset'] ) ) {
return;
}
$offset = $query->query['offset'];
//Next, determine how many posts per page you want (we'll use WordPress's settings)
$ppp = get_option('posts_per_page');
//Next, detect and handle pagination...
if ( $query->is_paged ) {
//Manually determine page query offset (offset + current page (minus one) x posts per page)
$page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );
//Apply adjust page offset
$query->set('offset', $page_offset );
}
else {
//This is the first page. Just use the offset...
$query->set('offset',$offset);
}
}
-
This reply was modified 12 years by
mertnuhoglu.
Sorry Radu, Site is not online – working this time on xampp… 🙁
I deleted all and reinstall wordpress , database and theme from hdslr.com.br ( still with the version 1,0,1)
Just sent the new version via FTP. Same post, same pages, same plugins. All the same
– Internet speed 35Mbps
– v1.0.1 = 8,16seconds
– v1.7.2 = 24,16seconds
Hello
I deleted all and reinstall wordpress , database and theme from hdslr.com.br ( still with the version 1,0,1)
Just sent the new version via FTP. Same post, same pages, same plugins. All the same
– Internet speed 35Mbps
– v1.0.1 = 8,16seconds
– v1.7.2 = 24,16seconds
tks
Hello,
use this: http://screencast.com/t/MSj3xEGHA1
I dug a little deeper and it definitely has something to do with the missing <aside> tags. Not sure why my version of the theme (and the demo) is not outputting them like the example you gave above.
I was able to edit the includes/app/shortcodes/td_social.php line 31 $buffy .= and include the <aside> tag with a fixed ID for a text box id=”text-3″ and it worked. Definitely not the right way and I won’t be leaving it there, just trying to isolate and find out where the disconnect is occurring.
Let me know if you have any ideas or suggestions on where I should look. Thanks!
Where can i find the WXR (.xml) file of the sample content, it was not in the zip
Ok, i’ve seen the problem now, it comes from similar articles for example this page http://house-language.me/sebastien-leger-back-to-basics-remixes-mis049/ have 3 images, one for the post and 2 images from similar articles. Facebook grabs the 3 images in alphabetical order. Please fix this bug.
Hello where can i find the sample xml file content in order to import it to the blog ?
One note; with some social media they will “scrape” images from page, and *not* ironically from the META data. I run into this with Facebook posting every day, and Twitter will tend to grab the first image found in the META.
Always look at your META data (view source). For example, if you have 3 images in your post, the first one in the META may be used as default, based either on which is posted first into the story/article, or by name/numerical depending on your setup.
There *does* seem to be a bug with the Pinterest share button not showing anything (using button in theme below each post). However for us the Twitter, Facebook and G+ do work properly. Also remember ANY image which is “linked” in the article will generally *NOT* be used as an image in social media (or Google News), as most of the ‘bots can’t determine if that is an advert or not (ads are commonly linked, while an editorial image is *not* linked to anything).
Not sure if that helps anybody, just the behavior I’ve seen.
Just heads up to folks worrying about page speed, one great resource you may already be aware of is my friends at GT in Canada who built a neat testing tool years back, here: http://gtmetrix.com/
Paste in any page URL from your site, such as a post page, and it will tell your speed scores with Google PageSpeed and Yahoo Yslow – but also give you suggestions on various things you can fix; particularly useful is looking at number of calls for some plugins that “dial out” for avatars, social media, etc.
Keeping in mind that most WP themes may have too many calls to CSS files, and some plugins add more, which they shouldn’t (I’ve got one called ‘external links’ right now, and not using any of the CSS in the plugin, but he still loads another style sheet, not needed – having to bug him to remove that …) …
Anyway… it’s a good reference to some of the issues folks run into prior to optimization. YOu can create free account, then run a scan, and then when you tweak, you can come back and rerun test, and see improvements over time.
It’s more useful than running Google Page Speed insights, as it actually provides tips and exmaples on how to actually address each issue, along with explanations – which Google does in a roundabout or confusing way or not at all (meaning Google penalizes your page speed for their own AdSense content … which is hilarious … “you should fix this” – and it’s their content that needs fix!).
I’ve spent 3 months optimizing our main business site (not using WordPress) which has been an adventure; now starting on the WordPress stuff.
I can tell you from experience that Radu and co are doing an amazing job with optimization within the confines of the WordPress setup which inherently has numerous flaws for SEO, like the method for CSS redirect used in the child themes (WP core devs keep using a method not recommended by the rest of the universe … for example).
So, there is a *lot* going on with WP, which *no* theme maker can fully address, only tweak and you need to research common problems and workarounds for *ALL* WP based installs when concerned with Page Speed.
For instance, I do *NOT* use JetPack myself as it “phones home” all over the place and slows things down. SO, every little spinning widget and flashing light and cannon blasting all slow down the page. If you want the most speed with WP, you need to have the simplest layout possible, ala Newspaper, for this kind of site, and then optimize the heck out of all your images, minimize anything that calls out to other sites (like FB comments box), certain JetPack things, and anything that doesn’t run in async with javascript, and avoid plugins which add more CSS style sheets and can’t inherent code, or properly write custom CSS into the head INLINE, not as yet another external style sheet!
Just some suggestions, somebody may find useful as a WP user since 2005, and webdev since 1994.
Doch, wird eine Newsseite. Arbeite aber zunächst noch einige Tage “stationär”, d.h. xampp. Brauche etwas “Fingerübungen” mit dem Theme usw.
Habe mal eine WP-Seite mit Thesis für Freund gemacht; aber nicht so anspruchsvoll vom Design und Layout wie Newspaper.
Als 60-Jähriger ist es eben nicht so einfach, sich hier rein zu fummeln. Komme vom Text (Redakteur), nicht vom Coden. Muss mir das noch irgendwie auf Minimalbasis aneignen…
Gruss Martin
That’s a normal behavior of the facebook script if you’re working in local environment e.g. xampp.
I found a solution. Here is it:
Edit Newspaper/includes/app/shortcodes/td_block_3.php:
$td_query = &$td_data_source->get_wp_query($atts); //by ref do the query
Add the following line before it:
$atts['offset'] = 5;
$td_query = &$td_data_source->get_wp_query($atts); //by ref do the query
Edit Newspaper/includes/content_builder/td_data_source.php
extract(shortcode_atts(
array(
'category_ids' => '',
'tag_slug' => '',
... ),
$atts
Add the following element to the above array:
'offset' => 0,
And add the following line after $args created:
$args['offset'] = $offset;
-
This reply was modified 12 years by
mertnuhoglu.
Well… you may have some other plugin that creates or registers a “twitter” field for managing that data.
In my case I’m using Yoast SEO, NOT using Jetpack, and in my user’s account setup, I put in the full URL, and it shows up on both the author page and the posts with correct link.
by way of example:
see this old article on the site in progress to revamp with Newspaper:
note link on page is:
https://twitter.com/tophersimmons
on author page/index
https://twitter.com/tophersimmons
and on the post in the head meta data, note the bug
<meta name=”twitter:site” content=”@neotrope”/>
<meta name=”twitter:domain” content=”Publishers Newswire”/>
<meta name=”twitter:creator” content=”@https://twitter.com/tophersimmons”/>
<!– / Yoast WordPress SEO plugin. –>
In my user account I have this in the twitter field:
https://twitter.com/tophersimmons
I’m using the latest version of WP, latest version of Newspaper.
Only plugins I’m using are Yoast, WP-Optimize, our house ad module turned off, and I think we have Recaptcha running. Maybe something else, but it escapes me at the moment.
In the block, how would I tell it to do a 4 column layout? For example, I’ve started off copying Block 3, renaming it block 6 (and corresponding code), then added a case for 4 columns…
I’d like to use basic links for Facebook, Twitter and Google+ instead of the regular buttons.
In my current theme I use this type of code elements to bring up simple links
&t=<?php urlencode(get_the_title()); ?>”><b><?php echo getFBCount(get_the_ID(), ‘total’, 24); ?></b> Facebook Shares It works fine.
Where do I have to put this code the let the Facebook Shares link be shown at the frontend? Or is there another way to make this work?
Best
Akimo
Hi,
You said about dailymotion
I already tryed some time before to integrate it (you can still see old code in our file /includes/class/td_video_support.php) and it was not working very well due to the small thumbnails served by them (not useable on any of our sliders and form what I can remember smaller than our thumbs as well).
can this help? (I think your problem can be solved by using thumbnail_large_url )
// dailymotion.com
case 'dailymotion':
// domain video ID
preg_match('/dailymotion.com\/(?:embed\/)?video\/([^_#\?]+)/', $url, $url_data);
if( !isset($url_data[1]) )
break;
$video_id = $url_data[1];
// access API: http://www.dailymotion.com/doc/api/obj-video.html
$url = 'https://api.dailymotion.com/video/'.$video_id.'?fields=title,description,created_time,owner.screenname,tags,thumbnail_url,thumbnail_large_url,url,aspect_ratio';
$request = new WP_Http;
$response = $request->request( $url, array( 'method' => 'GET', 'sslverify' => false) );
if( is_wp_error($response) )
break;
$result = json_decode($response['body'], true);
if( !isset($result) || (isset($result['error']['code']) && ($result['error']['code'] == 501 || $result['error']['code'] == 400) ) )
break;
// extract info of a time-link
preg_match('/t=(?:(\d+)m)?(?:(\d+)s)?/', $url, $attr);
if( !empty($attr[1] ) || !empty($attr[2]) ) {
$min = !empty($attr[1]) ? $attr[1]*60 : 0;
$sek = !empty($attr[2]) ? $attr[2] : 0;
$video_time = $min + $sek;
} else {
preg_match('/start=(\d+)/', $url, $attr);
if( !empty($attr[1] ) )
$video_time = $attr[1];
else
$video_time = 0;
}
// generate video metadata
$data = array(
'id' => $video_id,
'provider' => $provider,
'time' => $video_time,
'title' => $result['title'],
'description' => $result['description'],
'filename' => sanitize_file_name($result['title']),
'timestamp' => $result['created_time'],
'author' => $result['owner.screenname'],
'tags' => implode(', ', $result['tags']),
'img' => ( isset($result['thumbnail_url']) && !empty($result['thumbnail_url']) ) ? $result['thumbnail_url'] : $result['thumbnail_large_url'],
'url' => 'http://dailymotion.com/video/'.$video_id. ( $video_time>0 ? '#t='.floor($video_time/60).'m'.($video_time%60).'s' : '')
);
break;
I found this code in the featuredvideoplus plugin
http://wordpress.org/plugins/featured-video-plus/
This is what I mean, these features you promised along time ago already exist. Why reinvent the wheel. Why waste your time stuck on this feature when you can look into opensource code and learn from it? Why reinvent the wheel when you can look at one for inspiration and make a better one for your racecar 😉
Is that not why wordpress is so good?
Once more, this theme has the potential of becoming the best theme ever.
Thank you