A molding hook and loop fastener (1, 2) including: a planar substrate made from a thermoplastic resin and including a first surface and a second surface opposite to the first surface; barriers (20, 80) erected on the first surface near left and right side edges along a length direction of the substrate; and a plurality of engaging elements disposed between the left and right barriers (20, 80), in which each of the left and right barriers (20, 80) includes at least two rows of vertical wall arrays (21, 81), the vertical wall array (21, 81) of each row includes a plurality of vertical walls (24, 84) that is disposed intermittently in the length direction and is alternately disposed between the adjacent vertical wall arrays (21, 81), and the molding hook and loop fastener (1, 2) is molded integrally with a foam body at the same time as molding of the foam body, being characterized in that: between two adjacent rows of vertical walls (24, 84) disposed alternately, each of the vertical walls (24, 84) disposed on one row is connected to two vertical walls (24, 84) disposed on the other row via a connecting part (22, 82), and the connecting part (22, 82) connects one end portion in the length direction of the vertical wall (24, 84) disposed on one of the adjacent rows and the other end portion in the length direction of the vertical wall (24, 84) disposed on the other row. a planar substrate made from a thermoplastic resin and including a first surface and a second surface opposite to the first surface; barriers (20, 80) erected on the first surface near left and right side edges along a length direction of the substrate; and a plurality of engaging elements disposed between the left and right barriers (20, 80), in which each of the left and right barriers (20, 80) includes at least two rows of vertical wall arrays (21, 81), the vertical wall array (21, 81) of each row includes a plurality of vertical walls (24, 84) that is disposed intermittently in the length direction and is alternately disposed between the adjacent vertical wall arrays (21, 81), and the molding hook and loop fastener (1, 2) is molded integrally with a foam body at the same time as molding of the foam body, being characterized in that: between two adjacent rows of vertical walls (24, 84) disposed alternately, each of the vertical walls (24, 84) disposed on one row is connected to two vertical walls (24, 84) disposed on the other row via a connecting part (22, 82), and the connecting part (22, 82) connects one end portion in the length direction of the vertical wall (24, 84) disposed on one of the adjacent rows and the other end portion in the length direction of the vertical wall (24, 84) disposed on the other row. between two adjacent rows of vertical walls (24, 84) disposed alternately, each of the vertical walls (24, 84) disposed on one row is connected to two vertical walls (24, 84) disposed on the other row via a connecting part (22, 82), and the connecting part (22, 82) connects one end portion in the length direction of the vertical wall (24, 84) disposed on one of the adjacent rows and the other end portion in the length direction of the vertical wall (24, 84) disposed on the other row.