<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tranminhdz</title>
    <description>The latest articles on DEV Community by tranminhdz (@tranminhdz).</description>
    <link>https://dev.to/tranminhdz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F236018%2F0bed26bd-e0ee-42a4-97ad-b6b84d123f63.png</url>
      <title>DEV Community: tranminhdz</title>
      <link>https://dev.to/tranminhdz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tranminhdz"/>
    <language>en</language>
    <item>
      <title>Tabs to change category wordpress woocommerce</title>
      <dc:creator>tranminhdz</dc:creator>
      <pubDate>Sun, 29 Sep 2019 11:20:30 +0000</pubDate>
      <link>https://dev.to/tranminhdz/abs-to-change-category-wordpress-woocommerce-1nl</link>
      <guid>https://dev.to/tranminhdz/abs-to-change-category-wordpress-woocommerce-1nl</guid>
      <description>&lt;p&gt;I want to create category tabs where I can change products based on the chosen category. I would like the feature below (you can click on the category tab and the product will change)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://vip-restaurant.vamtam.com/shop-home/#tab-1-5-breakfast"&gt;https://vip-restaurant.vamtam.com/shop-home/#tab-1-5-breakfast&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One solution I can think of is I create a jquery tabs and use woocommerce shortcode. However, I am not sure if it is the correct way in wordpress&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[products category="salad"]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;In the example above, I can see that when changing the tab, the url changes as well. I dont know how to do it. Please help&lt;/p&gt;

&lt;p&gt;Could you guys show me how to do it? Thanks very much&lt;/p&gt;

</description>
      <category>help</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Wordpress workflow in 2019</title>
      <dc:creator>tranminhdz</dc:creator>
      <pubDate>Wed, 25 Sep 2019 08:03:28 +0000</pubDate>
      <link>https://dev.to/tranminhdz/wordpress-workflow-in-2019-c2h</link>
      <guid>https://dev.to/tranminhdz/wordpress-workflow-in-2019-c2h</guid>
      <description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I am new to Wordpress and I study Wordpress through Udemy course and read some articles which are not up to date. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Currently I am using&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No git&lt;/li&gt;
&lt;li&gt;Local by flywheel to create WP project locally&lt;/li&gt;
&lt;li&gt;All in one wp migration to deploy (it will override all things)&lt;/li&gt;
&lt;li&gt;WP Migrate db to update database &lt;/li&gt;
&lt;li&gt;Ftp or Wordpress file manager plugin to update WP content &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, I realize that this stack is quite old and I have to do lots of work manually. I want to ask you guys about wordpress workflow in 2019&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Workflow&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Git:&lt;/strong&gt;&lt;br&gt;
I am familiar with git but I am not sure how to use it in WP. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Should I init git in root of project and use &lt;a href="https://github.com/github/gitignore/blob/master/WordPress.gitignore"&gt;WP gitignore&lt;/a&gt; or I init git in wp-content directory?&lt;/li&gt;
&lt;li&gt;Should I ignore plugins&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I try to init git in root of project and add gitignore but there are many weird files are tracked by the git and I am not sure if I should ignore them&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Webpack&lt;/strong&gt;&lt;br&gt;
I am familiar with Webpack since I worked with React. I can easily set up Webpack and Babel to bundle my projects (I set up it in the custom theme). However I am not sure how to optimize WP images. I can see WP has many plugins, &lt;a href="https://wordpress.org/plugins/wp-smushit/"&gt;wp-smushit&lt;/a&gt;, for that, should I use them or there is a better option. Should I use webpack instead of gulf since I can see that there are many gulp tutorial?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Upload WP content to staging and production&lt;/strong&gt;&lt;br&gt;
Currently I use Ftp for that but I know it is the old way. I have to remember which files have been changed then upload them. How can I upload these changed files automatically (when I merge to dev branch for staging and master branch for prodction)? Does it depend on host service because I can see the price is extremely expensive to have that (WPengine ,...)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Push local database to staging and production database&lt;/strong&gt;&lt;br&gt;
Since the production database changes constantly (I intend to build Woocommerce web), I cannot use WP migrate pro or All in one migration because it will override the whole db.&lt;/p&gt;

&lt;p&gt;Currently, after uploading the wp-content to staging and production, I have to go to production and add page, advanced custom field manually. I can see Advaned custom field has export/import tool, should I use that to push new advaned custom field to production?&lt;/p&gt;

&lt;p&gt;If I add a page locally, or add a Advanced custom field. How I push it to production and staging? &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Sync productionDB, stagingDB with local&lt;/strong&gt;&lt;br&gt;
In order to keep my local to sync with production, I use WP migrate pro for that because it is no harm to override local DB&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. What is the difference between wp-sync-db and wp-migrate-pro?&lt;/strong&gt;&lt;br&gt;
Thank you guys very much. Could you suggest your development workflow?&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>discuss</category>
      <category>help</category>
    </item>
  </channel>
</rss>
