- Step 1. Generate the Noticias Newswire code for the Widget
- Step 2. Setup the Noticias Newswire PHP code inside the Widget
- Step 3. Setup the Noticias Newswire for displaying the single posts
Step 1. Generate the Noticias Newswire code for the Widget
1. First, you need to generate a shortcode to be inserted in the widget. You will generate that code on this page www.noticiasnewswire.com/placements/#widgetparameters where you can choose all the parameters to personalize the Noticias Newswire widget.
2. Click on “Generate Code” button so that you generate the copyable PHP code to be included in the Widget section.
Step 2. Setup the Noticias Newswire PHP code inside the Widget
1. You must download this PHP file newswire-feed-php.php and upload this file onto the same directory where you will add the PHP code generated in step 1 above.
This is an example of the PHP file (sidebar.php) where you are going to insert this code generated:
2. Upload this file sidebar.php and the other file newswire-feed-php.php onto the same directory where you will display this widget.
3. You will see the file with the new widget displayed.
Step 3. Setup the Noticias Newswire for displaying the single posts
1. You need to generate a PHP code to be inserted on the page where you want to display all the single posts. Go to this page www.noticiasnewswire.com/placements/#widgetparameters where you can custom the Hispanicize wire news list.
We highly recommend to select the following options for your widget:
- Do you want to add the Noticias Newswire logo? No
- Personalize the Title (Noticias Newswire by default): (empty)
- Thumbnail Image Size: Large
- Number of Posts: 10
- Link where you will display each entire post: This is the page of your website where you will list all the post entries from Noticias Newswire. For example: https://www.yourdomain.com/noticias-newswire
- View More option: No
- Pagination option: Yes
The other options will depend on your specific needs for the widget.
2. Click on “Generate Code” button to create the copyable shortcode to be included into this page -> https://www.yourdomain.com/noticias-newswire.
3. You must also download this PHP file newswire-feed-php.php and upload this file onto the same directory where you will add the PHP code generated above.
This is an example of the PHP file (page.php) where you are going to insert this code generated:
4. Upload this file sidebar.php and the other file newswire-feed-php.php onto the same directory where you will display this widget.
5. You will see the page with full list of post entries:
6. You can also see the page showing each post entry single:
IMPORTANT OBSERVATION
If you run into some strange code being displayed on your page, as shown in screenshot below, you should add these lines on the top section:
<?php
header('Content-Type: text/html; charset=utf-8');
mb_internal_encoding('utf-8');
?>